- My goal is: Eliminate canary stack exceptions
- My actions are: Reviewed documentation
- The result I see is: Device reboots
- My expectation & question is: looking for a method to increase the BLE stack size
Hi,
I have an ESP32 app, using PPPoS to connect to AWS IoT, and BLE for log access/configuration from an Android app.
At certain points I get Stack canary exceptions and the device reboots. I’ve yet to figure out how to analyse core dumps, but i’m wondering if anyone has knowledge of how to increase the BLE stack size, as my issue only happens when connected via BLE.
Any thoughts would be appreciated.
Regards,
Paul
AFAIK, there is no BLE stack size, and if it is, it should be IDF stuff, not mOS. Your whole app is taking up too much stack. But I could be wrong.
mOS runs over the IDF, which runs over FreeRTOS.
https://mongoose-os.com/docs/mongoose-os/api/core/mgos_system.h.md
Thanks for the reply, appreciated.
Looking at the sdkconfig I can see various defines related to Bluetooth.
CONFIG_BT_NIMBLE_TASK_STACK_SIZE=6144
CONFIG_NIMBLE_TASK_STACK_SIZE=6144
I’ve tried overriding this in mos.yml and it appears to feed through to the build.
I’ve also increased my task stack size, but to no avail.
As per my other forum post, which you kindly replied to, my problem there is actually that it won’t dump the core, it starts then immediately aborts the dump, so i’ve got nothing to look at.
I’ll persevere further but just wanted to thank you for your response.
Paul.