Skip to main content
Associate III
October 8, 2024
Solved

Program size calculation using STM32CubeIDE

  • October 8, 2024
  • 2 replies
  • 2557 views

 

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

 

 

 

Best answer by TDK

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

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