2025-02-14 07:44 PM
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
2025-02-15 12:11 AM
Hi,
seem no connection to a working cpu.
So try: use CubeProgrammer , connect - then show , what its telling .
2025-02-15 12:23 AM
Hi AScha.3
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.
2025-02-15 12:40 AM
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 ) .
2025-02-15 10:31 AM
The best fix is updating the EWARM to the latest version (9.something); chances are that the STM32H7A loaders are fixed there.
2025-02-15 11:53 AM
The top post references H7xx, this might not work for H7Ax
Make sure you have current/applicable patches applied.
Build one of the complete example projects for the NUCLEO-H7A3ZI