raspberrypi/pico-vscode

Display Occupied Memory

Tsroga-LMG opened this issue · 1 comments

Is there any way to have the compiler display the occupied vs available flash and ram of your code?

You can add set(CMAKE_EXE_LINKER_FLAGS "-Wl,--print-memory-usage") near the top of your CMakeLists.txt file - this passes the --print-memory-usage argument to the linker, which prints usage. Note that due to raspberrypi/pico-sdk#1871 it will always show 100% RAM usage in SDK 2.0.0 - this will be fixed in SDK 2.0.1