2026-01-29 12:55 AM - last edited on 2026-01-29 5:06 AM by Andrew Neil
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?
2026-01-29 1:53 AM
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.