SPI Flash Read/Write Issue

Status
Not open for further replies.

deep.kap

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: 84

Yes. WP pin is pulled up.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…