Skip to main content
Explorer
June 16, 2024
Solved

STM32G4 boot image max size

  • June 16, 2024
  • 4 replies
  • 1637 views

Hi Guys,

 

New in STM32 design.

 

We are going to use STM32G4 MCU (specific P/N hasn't been selected yet).

We want to use dual image boot (for upgrade option). 

I need to choose an external QSPI flash for that.

What is the maximum image size for STM32G4?

 

Thanks

 

Shay

    This topic has been closed for replies.
    Best answer by Tesla DeLorean

    >>New in STM32 design

    Ok, but read the documentation and specifications.

    They say 512KB of Internal Flash

    External QSPI NOR 256MB (2Gbit) should be easy enough to map.

    https://www.st.com/en/microcontrollers-microprocessors/stm32g4-series.html

    4 replies

    Graduate II
    June 16, 2024

    >>New in STM32 design

    Ok, but read the documentation and specifications.

    They say 512KB of Internal Flash

    External QSPI NOR 256MB (2Gbit) should be easy enough to map.

    https://www.st.com/en/microcontrollers-microprocessors/stm32g4-series.html

    ShayAuthor
    Explorer
    June 16, 2024

    @Tesla DeLorean 

    I read the datasheet, I missed the information that the internal Flash is good for dual image boot.

     

    Thaks for the information.

     

    Shay

    Graduate II
    June 16, 2024

    Code can XIP (Execute In-Place) from QSPI NOR

    If you split the Internal banks, then 2x 256KB Images, but if you've got a complete valid firmware staged elsewhere I'm not sure you need to split the banks.

    How much code space does your application use?

    ShayAuthor
    Explorer
    June 16, 2024

    We don't know yet. 

     

    Specifications stage...

    Graduate II
    June 16, 2024

    You'd probably want a grasp of complexity before picking MCU's

    What's currently driving the choice of STM32G4, vs say a F7 / H7 with caching, and better FPU options.

    ShayAuthor
    Explorer
    June 17, 2024

    Hi,

     

    To be honest with you, it should be a general purpose MCU for controlling some sensors via I2C, UART, GPIOs, and stabilized a temperature environment (according to temp' sensor and some algorithm, activate a load switch). 

    No need for FPU or other ISP capabilities.

    The system will not be mobile, and power consumption is not critical. 

    This is the reasons we choose the "general purpose" family.

     

    Thanks

     

    Shay