I’m running out of memory on a project (region `APP_FLASH’ overflowed) and would like to see what is taking up the most space (and might even be unused). The project is based on a custom board with a P1 module. Searching the Guide/Docs returns no solutions, so I wonder - how can I profile a project?
The only way I know that can give me an idea of how much memory I use requires that I uncomment all the P1-specific constants and then use this to compile and get a very general memory analysis.
particle compile photon
I can compile this using:
particle flash (My P1's DeviceID)
that only produces the file in the cloud and flashes it to the device. I have seen mentions of the “arm-none-eabi-size” tool and I have it installed, but it seems it requires the .elf file. Is there a way for me to keep the compiled files, such as the ELF for analysis?