cancel
Showing results for 
Search instead for 
Did you mean: 

Nucleo-H7A3ZI - Cant download code & debug.

sushilkumar
Visitor

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 

 

 

3 REPLIES 3
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".