ESP32 Crashed when listening BLE advertising after long time

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 Crashed when listening BLE advertising after long time

Postby chegewara » Thu Sep 17, 2020 7:29 am

Of course i am assuming you are getting this error:

Code: Select all

***ERROR*** A stack overflow in task Tmr Svc has been detected

Gianluca.Loi
Posts: 19
Joined: Mon Jun 03, 2019 3:46 pm

Re: ESP32 Crashed when listening BLE advertising after long time

Postby Gianluca.Loi » Thu Sep 17, 2020 7:33 am

chegewara wrote:
Thu Sep 17, 2020 7:29 am
Of course i am assuming you are getting this error:

Code: Select all

***ERROR*** A stack overflow in task Tmr Svc has been detected
What I have is this error only "BT_HCI: command_timed_out hci layer timeout waiting for response to a command. opcode: 0x200c"

Gianluca

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32 Crashed when listening BLE advertising after long time

Postby chegewara » Thu Sep 17, 2020 7:40 am

In that case maybe try to find when it is happening and try to add small delay before bt command that is causing it.

Gianluca.Loi
Posts: 19
Joined: Mon Jun 03, 2019 3:46 pm

Re: ESP32 Crashed when listening BLE advertising after long time

Postby Gianluca.Loi » Thu Sep 17, 2020 10:14 am

chegewara wrote:
Thu Sep 17, 2020 7:40 am
In that case maybe try to find when it is happening and try to add small delay before bt command that is causing it.
I don't think is a solution because, between the end of the scan and the restart there some operations. Anyway I tried adding 2ms delay before the restart and this message appears.
Any other idea?

Regards,

Gianluca.

Who is online

Users browsing this forum: No registered users and 123 guests