cancel
Showing results for 
Search instead for 
Did you mean: 

Flashing Issue with STM32G431RB in IAR Embedded Workbench 8.22.3 After Patch Installation

Umesh_Kumar278
Associate

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

  1. 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:

Umesh_Kumar278_0-1739866797373.png

 

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

  1. Does IAR 8.22.3 fully support flashing STM32G431RB after applying the patch, or is a newer IAR version required?
  2. Are there any updated STM32G4 flash loaders (.flash files) from ST that work for STM32G431RB?
  3. Is there a way to manually modify an existing flash loader for STM32G431RB?
  4. Why is STM32CubeProgrammer missing an external loader for STM32G431RB?
  5. Has anyone successfully flashed STM32G431RB in IAR 8.22.3? If so, how?

Any insights or suggestions would be greatly appreciated. Thanks!

0 REPLIES 0