cancel
Showing results for 
Search instead for 
Did you mean: 

U599 + W25Q64 Flash QUADSPI External Loader Errors

Hareesh_S
Associate II

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

1 REPLY 1

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

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..