cancel
Showing results for 
Search instead for 
Did you mean: 

External QSPI Loader data read failed message

DWWelch
Associate III

Hello,

I followed the STMicro YouTube tutorial for developing an external QSPI loader. I am using the W25Q128 attached to the NUCLEO-H7A3ZI-Q. The flash is working fine with my driver using the test program "main_test.c" provided with the tutorial, and I can access the flash contents at 0x090000000 in memory-mapped mode from the STM32CubeIDE debugger. I compile the external loader with the linker script provided in the tutorial and move the .stldr file into the external loader folder for STMCubeProgrammer. I select my loader from the list of loaders, but when I try to view external flash contents at 0x090000000, I get data read failed. If I try to download data to the external flash from STMCubeProgrammer I get:

16:35:41 : Time elapsed during the read operation is: 00:00:00.009
16:35:50 : Memory Programming ...
16:35:50 : Opening and parsing file: testbinary1M.bin
16:35:50 : File : testbinary1M.bin
16:35:50 : Size : 1.13 MB
16:35:50 : Address : 0x09000000
16:35:50 : Erasing memory corresponding to segment 0:
16:35:50 : Download in Progress:
16:35:50 : Error: failed to download Segment[0]
16:35:50 : Error: failed to download the File

Is there a log file from STM32CubeProgrammer that would give me any details about the failure so I can debug this issue?

I attached my loader source which I adapted from the H7 loader file included with the tutorial.

Thanks,

Dan

11 REPLIES 11

...I had the external flash address entered correctly in ST-Link Utility but was missing a zero in the address in STM32CubeProgrammer.  ... It works fine with the correct address.

You can mark your answer as solution.

FBL
ST Employee

Hello @DWWelch,

Thank you for your feedback.

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.


I'm out of offce with limited access to my emails.
Happy New Year!