instability with free rtos on two cores Bluetooth + wifi

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

instability with free rtos on two cores Bluetooth + wifi

Postby imtiaz » Wed Mar 08, 2017 2:15 am

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

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

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

Postby ESP_Angus » Thu Mar 09, 2017 6:47 am

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

imtiaz
Posts: 106
Joined: Wed Oct 26, 2016 1:34 am

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

Postby imtiaz » Thu Mar 09, 2017 9:02 pm

sorry dont have any specific details - I will get back to it once I have everything stablised on one core

Who is online

Users browsing this forum: No registered users and 89 guests