cancel
Showing results for 
Search instead for 
Did you mean: 

Total ROM and RAM usage

sanju
Senior

Hi all,

i have tried same project in two different IDEs( Keil and STM32CUBEIDE). i am confuse that why they both are telling different usgae for RAM and ROM.

Keil map file says:

Total RO Size (Code + RO Data)        21156 ( 20.66kB)

 Total RW Size (RW Data + ZI Data)       2360 (  2.30kB)

  Total ROM Size (Code + RO Data + RW Data)   21284 ( 20.79kB)

STM32 Cube IDE says:

0693W00000WKI1AQAX.pngwhy the difference is there between these IDEs. application code is same and HAL code is generated by STMCUBEMX for both IDEs.

Post edited to adhere community guidelines.

1 REPLY 1
S.Ma
Principal

Programming101:

Not all compiler and linker are equally performant in memory footprint.

Compiler options will also affect footprint results. It is called benchmarking the compiler toolchains.