Page 1 of 1

instability with free rtos on two cores Bluetooth + wifi

Posted: Wed Mar 08, 2017 2:15 am
by imtiaz
Hi Espressif,

I have a project that is using BLE to set up a wifi network and then does an OTA update from factory image to OTA 0 using a wifi socket server on the esp to receive the file.

If I enable free rtos to run on two cores and reserve memory for two cores in my menu config I am unable to do a reliable OTA update. The program either crashes or stalls half way through receiving the file .

If I enable "run freertos on first core" and dont enable "reserve memory for two cores" in my menu config - the OTA is successful.

Please help to debug the issue .

Thanks
imtiaz

Re: instability with free rtos on two cores Bluetooth + wifi

Posted: Thu Mar 09, 2017 6:47 am
by ESP_Angus
Hi imtiaz,

It's hard to give specific suggestions without more details of the code and/or the crash. Is there anything else you can tell us?

Is it possible you're running out of heap or stack somewhere? Moving to single core may mitigate some combination of event timing which is causing memory pressure.


Angus

Re: instability with free rtos on two cores Bluetooth + wifi

Posted: Thu Mar 09, 2017 9:02 pm
by imtiaz
sorry dont have any specific details - I will get back to it once I have everything stablised on one core