cancel
Showing results for 
Search instead for 
Did you mean: 

.hex image downloading failed in external memory using IAR

rhine1012
Associate

1.  Hardware is STM32U5A9J-DK, which owns 3M internal onchip rom and 64M external nor flash.

2. Using TouchGFX Designer-Demo6 to 'Generate Code', 'Run Simulator', 'Program and Run Target', STM32U5A9J-DK works well.

3. Using CubeMX to load project STM32U5A9J-DK-FreeRTOS.ioc(generated by TouchGFX Designer in step 2) and set IDE as EWARM, then click 'GENERATE CODE' to generate IAR project.

rhine1012_1-1739122932284.png

4. Open IAR project and compile it successfully.

5. Click 'download and debug' in IAR tool bar, error occurs: Flash download warning: 22290240 out of 22290240 bytes from data record CODE:[0x9000'0000,0x9154'1f3f] will not be flashed,it seems that image cannot be downloaded into external memory. 

6. icf file:

rhine1012_2-1739123322381.png

The question is: what step shall I take to download image into external memory?

Best regards~

 

 

3 REPLIES 3
Pavel A.
Evangelist III

Do not forget to check Use flash loaders in debug options. And have a correct 'board file'.

PavelA_0-1739139213103.png

 

Via STM32 Cube Programmer w/External Loader ?

IAR might need patches, KEIL often needs current "packs"

https://github.com/STMicroelectronics/STM32CubeU5/tree/main/Utilities/PC_Software/IDEs_Patches/EWARM

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

I use IAR 9.32 and STM32U5xx chip is available.