Issue with Flashloader after applying the IAR patch to Support STM32G4 in IAR 8.22
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:
- The STM32G431RB appears in the device selection list.
- The project builds successfully.
- However, flashing & debugging fail with the following error:
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?
