Page 2 of 2

Re: ESP32 Crashed when listening BLE advertising after long time

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

Code: Select all

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

Re: ESP32 Crashed when listening BLE advertising after long time

Posted: Thu Sep 17, 2020 7:33 am
by Gianluca.Loi
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

Re: ESP32 Crashed when listening BLE advertising after long time

Posted: Thu Sep 17, 2020 7:40 am
by chegewara
In that case maybe try to find when it is happening and try to add small delay before bt command that is causing it.

Re: ESP32 Crashed when listening BLE advertising after long time

Posted: Thu Sep 17, 2020 10:14 am
by Gianluca.Loi
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.