Skip to main content
Associate II
June 16, 2024
Solved

STM32G4 boot image max size

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.
Tesla DeLorean
Tesla DeLoreanBest answer
Guru
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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..

6 replies

Tesla DeLorean
Tesla DeLoreanBest answer
Guru
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

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ShayAuthor
Associate II
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

Tesla DeLorean
Guru
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?

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ShayAuthor
Associate II
June 16, 2024

We don't know yet. 

 

Specifications stage...

Tesla DeLorean
Guru
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.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
ShayAuthor
Associate II
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