LwM2M over WiFi - RAM usage (nrf7002dk)

Hello,

I am currently developing a custom project that uses LwM2M over WiFi.

I started the development on a nrf7002 development kit and everything seemed fine when using nRF SDK v2.5.0. Since there is a bug in the LwM2M FOTA download process, I wanted to upgrade the SDK to v2.6.0 as it is fixed in this version. However, for some reason the MBEDTLS heap size needs to be increased to 120000 (from 60000) otherwise LWM2M will get memory issues. This increase in RAM usage is a lot and their is barely any space left for the application itself.

I also tested this with the "zephyr/samples/net/lwm2m_client" sample and the "overlay-nrf700x.conf". The RAM percentage is already at 90% with this sample, leaving no space for additional application logic. For example, my application also uses WiFi provisioning over BLE, which does not fit in RAM anymore.

So, why do we need so much heap for MBEDTLS? And is there any other way to decrease the memory footprint when using LwM2M over WiFi?

Kind regards,

Henrico

Related