I would like to use Arduino IDE to generate the elf file for the Raspberry Pi Pico. It works great. My problem: it always compiles with the debug symbols on it. For size reasons, I would like to remove/build without them. Is it possible?
I am using Arduino IDE 1.8.19 and the Pico board is the one from earl.
I know that it builds with the debug symbols because when I do:
arm-none-eabi-size -A "sketchfile.ino.elf"
The debug symbols have a size larger than zero.
You can see (and edit) all build settings in the platform.txt file associated with the board you compiled. To determine exact path to the platform.txt file use instructions from this thread:
I managed to do that. Now, if I do
$arm-none-eabi-size -A "sketchfile.ino.elf"
still shows the size of the ".debug_*" being larger than zero, however their address is zero. Does this mean that the debug symbols are NOT in the elf file?
Regardless of whether the debug symbols are in the .elf file, they are NOT copied into the .hex, .bin, or .uf2 files that are eventually loaded into the rp2040 itself…