Skip to main content
Visitor II
February 15, 2025
Solved

Nucleo-H7A3ZI - Cant download code & debug.

  • February 15, 2025
  • 3 replies
  • 908 views

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 

 

 

    This topic has been closed for replies.
    Best answer by Pavel A.

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

     

    3 replies

    Super User
    February 15, 2025

    Hi,

    seem no connection to a working cpu.

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

    Visitor II
    February 15, 2025

     

    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.

    Super User
    February 15, 2025

    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 ) .

    Pavel A.Answer
    Super User
    February 15, 2025

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

     

    Graduate II
    February 15, 2025

    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

    Visitor II
    February 16, 2025

    Thanks all,

    I have updated the EWARM to 9.1 and it works flawlessly.