2024-10-08 03:11 PM
Referring to AN5050 as well as an online guide for creating a QuadSPI loader for a W25Q32 flash IC, I have written code for a W25Q64 flash IC that I am interfacing in QuadSPI mode using the OctoSPI peripheral on the U599.
When I try reading the flash address in cubeprogrammer I get the following error
Error: Data read failed
Verbose level 3 does not log anything else relevant to the error.
When I try fully erasing the IC as well, I get the error -
Error: Mass erase operation failed.Please verify flash protection
I have attached my code below, could someone assist me in identifying the error in the same?
Thank you
2024-10-08 05:09 PM
If the Read fails it suggests that the Init() and Memory Mapping isn't working.
The log should show the PC side interaction, for the STM32 side you'd need to instrument and output diagnostics through an available UART. You could also debug the code in application space prior to integration, or via a framework that calls the loader functions.
Here's a loader for your pin configuration.
https://github.com/cturvey/stm32extldr/blob/main/u5_w25q64/README.md