Open lyusupov opened 7 months ago
Hello @lyusupov,
Thank you for your detailed analysis! The BGM220 already has it's RAM usage cut back in order to fit into the 32K of RAM.
Some of these RAM hogs will be removed in the next release - for example the SPI and Wire libraries will be moved out and will only take up RAM when you actually use them.
Most of these are part of the radio stack or FreeRTOS - but we can look into further optimizing the OS buffer/stack sizes.
I also see some entries like the ADC
which can be further optimized.
Thanks again for the analysis, we'll continuously improve the RAM usage!
Core version: 1.0.0 Variant: BGM220 Explorer Kit
Let's take this simple sketch and built it for BGM220 Explorer Kit target:
We can see that this simple 'hello world' kind of sketch consumes 19392 bytes (59%) out of 32 KBytes RAM available in the BGM220.
These are the static objects of the sketch that consume most of RAM space:
To reproduce