31-05-2023, 11:54 PM
I use this linker flag to print out the memory usage of my STM32H7 project:
-Wl,--print-memory-usage
The output looks like this (in the Build log window):
-Wl,--print-memory-usage
The output looks like this (in the Build log window):
Code:
Memory region Used Size Region Size %age Used
ITCM_RAM: 0 GB 64 KB 0.00%
DTCM_RAM: 30136 B 128 KB 22.99%
SRAM_D1: 463256 B 512 KB 88.36%
SRAM1_D2: 98764 B 127 KB 75.94%
ETH_DESC: 480 B 1 KB 46.88%
SRAM2_D2: 0 GB 128 KB 0.00%
SRAM3_D2: 32735 B 32 KB 99.90%
SRAM4_D3: 0 GB 64 KB 0.00%
BOOT_RAM: 16 B 256 B 6.25%
BACKUP_RAM: 92 B 3840 B 2.40%
FLASH: 975388 B 2 MB 46.51%