I'm currently working with the WolfSSL port so memory is precious. This is the output I get from compiling locally:
arm-none-eabi-size --format=berkeley ../../myProject/target/myProject.elf
text data bss dec hex filename
118284 216 2396 120896 1d840 ../../myProject/target/myProject.elf
From what I've read, you should combine text+data to get the amount of Flash used. This should give me (118284+216= 118500) and with 128Kb total, I should have about 9Kb remaining for my app.
However - according to the official documentation1 - the above overruns the available memory since there only is 110592 bytes available. It looks like compiling using CLI stops working from 105Kb Flash used and upwards. Compiling with a local toolchain works well beyond this.
I would really appreciate some clear guidance on this. Could someone with the knowledge please clarify what the correct numbers are for both the Photon and the P1?