cancel
Showing results for 
Search instead for 
Did you mean: 

Program size calculation using STM32CubeIDE

chai2145
Associate III

 

Hi, 

When compiling program using Keil IDE, understand that the program size that flash to MCU can be calculate by:

Program size = Code + RO + RW

However, when compiling using STM32CubeIDE, how to know the program size going to flash into the MCU flash memory? I got the following memory details as below. 

Is the program size = text + data?

 

chai2145_1-1728379506281.png

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
TDK
Guru

> Is the program size = text + data?

Yes, for a standard program that's the amount that will be sent to flash.

As @Andrew Neil says, the Build Analyzer (Window -> Show View -> Build Analyzer) will show this and more detailed information.

If you feel a post has answered your question, please click "Accept as Solution".

View solution in original post

2 REPLIES 2

The Build Analyzer tells you:

AndrewNeil_0-1728381308456.png

https://www.st.com/resource/en/user_manual/um2609-stm32cubeide-user-guide-stmicroelectronics.pdf#page=128

https://wiki.st.com/stm32mcu/wiki/Category:STM32CubeIDE 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.
TDK
Guru

> Is the program size = text + data?

Yes, for a standard program that's the amount that will be sent to flash.

As @Andrew Neil says, the Build Analyzer (Window -> Show View -> Build Analyzer) will show this and more detailed information.

If you feel a post has answered your question, please click "Accept as Solution".