Determine complete memory map

how do i determine how much room there is in the flashed image for additions? I can see the ram status with top and free in nsh - but cant seem to find out how much of the flashed ram is used/available.

thx

Depends on the platform, but for nuttx you can check the size of firmware_nuttx.bin in the build directory src/firmware/nuttx.