golioth / golioth-zephyr-sdk

Golioth SDK For Zephyr
https://www.golioth.io
Apache License 2.0
67 stars 19 forks source link

samples: reduce k_malloc() heap size for ESP32 #281

Closed mniestroj closed 1 year ago

mniestroj commented 1 year ago

ESP32 platform has just 176.5 kB RAM for application use. This includes 128 kB reserved for RAM, which leaves just 48.5 kB for non-heap (k_malloc) use.

Reduce size of k_malloc() heap to 96 kB, which is what zephyr/samples/board/esp32/wifi_station uses. This increases non-heap RAM from 48.5 kB to 80.5 kB.

TODO:

github-actions[bot] commented 1 year ago

Visit the preview URL for this PR (updated for commit df089e6):

https://golioth-zephyr-sdk-doxygen-dev--pr281-esp32-reduce-hea-glthazk3.web.app

(expires Thu, 22 Sep 2022 15:24:54 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

mniestroj commented 1 year ago

All samples tested. There is an issue with esp32 platform and DFU sample (does not confirm and reboot automatically), but not related to this PR. Merging.