cancel
Showing results for 
Search instead for 
Did you mean: 

Program size calculation using STM32CubeIDE

chai2145
Associate II

 

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
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".