SPI Flash Read/Write Issue

Thread Starter

Deep Kapadia

Joined Dec 26, 2017
1
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

Top