Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SPI Flash Read/Write Issue

Status
Not open for further replies.

deep.kap

Newbie level 5
Newbie level 5
Joined
Jul 16, 2014
Messages
8
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
74
I'm trying to write into SPI Flash IC using Quectel MC60 openCPU.

I'm writing some data to a particular address and then I'm trying to read from the same, But I'm always getting all the bytes 0xFF.

-> Yes. I have Erased that particular sector before.

-> I'm successfully getting correct ID from SPI Flash IC. (SPI is working)

-> I have also tried to Write Enable Instruction(06h). I'm always getting 0x00 byte from status register, even after Write Enable Instruction.

SPI Flash: W25Q64FVSSIQ

MCU : Quectel MC60

I have attached code below.

Please help me where the issue. Thanks!!
 

Attachments

  • SPI_Flash_Code.txt
    4.9 KB · Views: 102

Yes. WP pin is pulled up.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top