Hello all,
I am using IAR Embedded Workbench 8.22.3 and needed to add support for the STM32G4 series (specifically the STM32G431RB). Since this version of IAR does not natively support STM32G4, I followed the official patch installation process.
Steps Followed & Observations
- Downloaded & Installed Patch for IAR
- Downloaded STM32G4 patch from ST’s official GitHub/STM32CubeG4 Patch for EWARM.
- Ran Install_Patch.bat as Administrator → Patch installed successfully.
- Restarted IAR → STM32G4 series appeared in the device list.
- Compiled application successfully.
- Created a new project targeting STM32G431RB.
- Compilation completed successfully without errors.
Download & Debug Issue (Flashing Failure)
When trying to Download and Debug, the following error appeared in the IAR Debug Log:

Checked the flash loader directory:
:file_folder: C:\Program Files (x86)\IAR Systems\Embedded Workbench 8.0 EWARM F\S 8.22.3\arm\config\flashloader\ST\
Found the following files:
- FlashSTM32G43xxB.flash
- FlashSTM32G4xxx_OTP.flash
Tried selecting different loaders, but none worked.
Questions
- Does IAR 8.22.3 fully support flashing STM32G431RB after applying the patch, or is a newer IAR version required?
- Are there any updated STM32G4 flash loaders (.flash files) from ST that work for STM32G431RB?
- Is there a way to manually modify an existing flash loader for STM32G431RB?
- Why is STM32CubeProgrammer missing an external loader for STM32G431RB?
- Has anyone successfully flashed STM32G431RB in IAR 8.22.3? If so, how?
Any insights or suggestions would be greatly appreciated. Thanks!