2025-02-16 11:45 PM - last edited on 2025-02-17 01:06 AM by SofLit
Moved from this thread (new question)
Hello,
I have installed the STM32G4 patch for IAR (from the STM32CubeG4 repository) on IAR Embedded Workbench 8.22.3. After applying the patch:
Failed to load flash loader: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.22.3\arm\config\flashloader\ST\FlashSTM32G43xxB.flash
Error while calling macro execUserFlashInit
What I Have Tried:
Manually set Flash Loader to FlashSTM32G4xxx.flash instead of FlashSTM32G43xxB.flash.
Disabled "Verify Download" in IAR Debug settings.
Reduced SWD Speed to 1 MHz.
Replaced flashloader files from the patch.
Questions:
Which is the correct flashloader file for STM32G431RB?
Does the STM32G4 patch officially support IAR 8.22.3, or do I need IAR v9+?
Is there an updated STM32G4 flashloader for older IAR versions?
Any additional settings needed in IAR to make flashing work?
2025-02-17 02:17 AM
Hello, @SofLit and all,
I am using IAR Embedded Workbench 8.22.3 and needed to add support for STM32G4 series (specifically STM32G431RB). Since this version of IAR did not originally support STM32G4, I followed the official patch installation process .
When trying to Download and Debug, the following error appeared in the IAR Debug Log:
Checked flash loader directory:
Tried selecting different loaders but none worked.