cancel
Showing results for 
Search instead for 
Did you mean: 

can't write to external flash memory after erase, without reseting the board first

RRichard
Associate

I have a custom PCB with an STM32H563VGT6 microcontroller and an external Winbond W25Q16JVUXIQ NOR flash memory connected to the octoSPI's (XSPI) upper four pins. The problem is I can only write data to the flash memory after an erase, if I reset my board between the two operation. Everything the erasing, writing, indirect reading, memory mapped reading work on their own, but not after erase without reset. I read out all 3 status registers, they are the same before and after the chip erase. (Of course I set the write enable bit before trying to write into the memory) 
Any idea what could be the problem?

1 REPLY 1
KDJEM.1
ST Employee

Hello @RRichard and welcome to the community;

 

I think that the issue is due to incomplete erase operation.

Could you please check if the erase operation is completed correctly.

Do you encounter the same problem when using mapped memory writes and indirect writes?

 

Thank you.

Kaouthar

 

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.