Currently, I'm using the text/data/bss sections from arm-none-eabi-size to estimate RAM usage. I'd like to confirm if this method is accurate. Are there more intuitive post-compilation memory analysis methods—similar to PlatformIO—that provide detailed breakdowns by module or variable?

image

image

main.map (4.2 MB)

You can add the following line in project/SConstruct:

# Add linker flags to display memory usage

env.Append(LINKFLAGS=[‘-Wl,–print-memory-usage’])

The output will look something like this: