Skip to main content
Associate III
October 8, 2024
Solved

Program size calculation using STM32CubeIDE

 

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

 

 

 

This topic has been closed for replies.
TDK
TDKBest answer
October 8, 2024

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

2 replies

Andrew Neil
Super User
October 8, 2024
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
TDKBest answer
October 8, 2024

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