Can someone give me an idea of the space available for the user program on the Electron, both flash and ram please. I note the data sheet says 128K flash but is this all available? What ram is left over for the user program after the system takes its share?
Thanks
If you build a sketch (with Build or CLI) you will get a memory usage report including a percentage of how much you’ve used.
like this
Output of arm-none-eabi-size:
text data bss dec hex
24828 176 1524 26528 67
In a nutshell:
Flash used 25004 / 110592 22.6 %
RAM used 1700 / 20480 8.3 %
@ScruffR, I believe the stats on Build/CLI are not showing correctly. The Photon and Electron have about 60-80K of available RAM and 128K of flash.
1 Like
Huh? I thought that was an old bug that was already dealt with - should have checked the figures and not rely on the self-healing powers of Build
1 Like
Thanks
1 Like
How can get my actual RAM usage?
Is there a fix for the “old bug” that ScruffR mentioned?
MY BUILD VERIFY OUTPUT:
Output of arm-none-eabi-size:
text data bss dec hex
23580 180 884 24644 6044
In a nutshell:
Flash used 23760 / 110592 21.5 %
RAM used 1064 / 20480 5.2 % <<<<<<<<<<<<<<<<<< Is 20480 inaccurate?