Segger Studio is capable of reporting Flash usage and Ram usage (heap & stack).
Is there a way to do that without Segger Studio? I'm using gcc, JLink command line tools.
Thank you.
Segger Studio is capable of reporting Flash usage and Ram usage (heap & stack).
Is there a way to do that without Segger Studio? I'm using gcc, JLink command line tools.
Thank you.
Hello Paul,
There is a linker flag for this
--print-memory-usage
Here is a nice article about it:
https://embeddedartistry.com/blog/2020/08/17/three-gcc-flags-for-analyzing-memory-usage/
If you are using nRF Connect SDK and west as your build tool, then it should show up automatically as the last step of the build process.
It looks like this:[169/169] Linking C executable zephyr/zephyr.elf
Memory region Used Size Region Size %age Used
FLASH: 29800 B 1 MB 2.84%
SRAM: 7648 B 256 KB 2.92%
IDT_LIST: 0 GB 2 KB 0.00%
Best regards,
Michal