cancel
Showing results for 
Search instead for 
Did you mean: 

STM32G4 boot image max size

Shay
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions

>>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
Up vote any posts that you find helpful, it shows what's working..

View solution in original post

6 REPLIES 6

>>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
Up vote any posts that you find helpful, it shows what's working..
Shay
Associate II

@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

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
Up vote any posts that you find helpful, it shows what's working..
Shay
Associate II

We don't know yet. 

 

Specifications stage...

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
Up vote any posts that you find helpful, it shows what's working..
Shay
Associate II

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