cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-H7A3ZI - Cant download code & debug.

sushilkumar
Associate

Hi ,

I Cant load the code or debug it in the dev board using my IAR workbench .it looks like some error with the flash loader.

Sat Feb 15, 2025 09:08:58: IAR Embedded Workbench 8.50.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armproc.dll)
Sat Feb 15, 2025 09:08:58: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\ST\STM32H7xx.dmac
Sat Feb 15, 2025 09:08:58: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\ST\STM32H7xx_DBG.dmac
Sat Feb 15, 2025 09:08:58: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\ST\STM32H7xx_OB.dmac
Sat Feb 15, 2025 09:08:58: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\debugger\ST\STM32H7xx_TRACE.dmac
Sat Feb 15, 2025 09:08:58: Loaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\flashloader\ST\FlashSTM32H7xx.mac
Sat Feb 15, 2025 09:08:58: Connected to ST-LINK/V3 [SWD mode 1000 kHz] [Access port: 0] Firmware V3.J15.M7 (Probe no: 002000134D4B500820373831)
Sat Feb 15, 2025 09:08:58: Hardware reset with strategy 1 was performed
Sat Feb 15, 2025 09:08:58: Initial reset was performed
Sat Feb 15, 2025 09:08:58: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\flashloader\ST\FlashSTM32H7xx.mac(100,34): Error: Operation error.
Sat Feb 15, 2025 09:08:58: Error while calling macro execUserFlashInit
Sat Feb 15, 2025 09:08:58: Unloaded macro file: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\flashloader\ST\FlashSTM32H7xx.mac
Sat Feb 15, 2025 09:08:58: Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\flashloader\ST\FlashSTM32H7AxxI_BANK1.flash
Sat Feb 15, 2025 09:09:06: IAR Embedded Workbench 8.50.1 (C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\bin\armproc.dll)

 

 

Please suggest a solution to load and debug the code 

 

 

5 REPLIES 5
AScha.3
Chief III

Hi,

seem no connection to a working cpu.

So try: use CubeProgrammer , connect - then show , what its telling .

If you feel a post has answered your question, please click "Accept as Solution".

 

Hi AScha.3

 

sushilkumar_0-1739607484210.png

sushilkumar_1-1739607735919.png

 

I was able to connect to the HW using CubeProgrammer but not using the IAR workbench,I have tried flashing a hex file to the unit via CubeProgrammer and verified the flash contents everything looks fine, but i can't load or debug the code using the IAR Workbench.

Hi,

perfect.

So we know: st-link working fine, target cpu is ok and responding.

If problem with IAR settings, try to find out, what you set wrong there or ask at IAR about this problem.

+

Error while calling macro execUserFlashInit

> Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.4\arm\config\flashloader\ST\FlashSTM32H7AxxI_BANK1.flash

 

Seems just missing the correct flash loader -- (whatever it is ) .

If you feel a post has answered your question, please click "Accept as Solution".
Pavel A.
Evangelist III

The best fix is updating the EWARM to the latest version (9.something); chances are that the STM32H7A loaders are fixed there.

 

The top post references H7xx, this might not work for H7Ax

Make sure you have current/applicable patches applied.

https://github.com/STMicroelectronics/STM32CubeH7/tree/master/Utilities/PC_Software/IDEs_Patches/EWARM

Build one of the complete example projects for the NUCLEO-H7A3ZI

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