Skip to main content
Graduate II
February 18, 2025
Solved

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

  • February 18, 2025
  • 2 replies
  • 659 views

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!

    This topic has been closed for replies.
    Best answer by KORKAD

    Hello @Umesh_Kumar278 

    Please find attached the old EWARM patch supporting STM32G431RB part numbers.

    Note: There is no need to install this patch with the new EWARM version starting from V8.50, as it is already taken into consideration by the toolchain itself.

    Regards,

     

    2 replies

    KORKADAnswer
    Technical Moderator
    May 20, 2025

    Hello @Umesh_Kumar278 

    Please find attached the old EWARM patch supporting STM32G431RB part numbers.

    Note: There is no need to install this patch with the new EWARM version starting from V8.50, as it is already taken into consideration by the toolchain itself.

    Regards,

     

    Graduate II
    May 26, 2025

    Hello @KORKAD ,

    I tried the latest patch and modifying the .mac file. I managed to do that , and I will try with this patch as well.

     

    Thanks and regards,

    Umesh