Arduino-ide tips and tricks
Posted: Fri Jun 15, 2018 4:40 am
I am working on very consuming heap project now and ive found something interesting. Thats why i want to start this topic and maybe other users will share with us some tricks too:
- first is simple, control stack of your main task; we can recover about 7-8kB if we create our own main task ans delete default task in setup(),
- this one is much better: if we dont use BT and BLE we can recover about 70kB heap with:
- first is simple, control stack of your main task; we can recover about 7-8kB if we create our own main task ans delete default task in setup(),
- this one is much better: if we dont use BT and BLE we can recover about 70kB heap with:
Code: Select all
esp_bt_controller_mem_release(ESP_BT_MODE_BTDM);