Page 1 of 2
ESP32 Dual Core Live Lock Problem
Posted: Wed Mar 24, 2021 11:07 am
by WardMas
Hello,
I am using ESP_IDF V4.0 and I have come across live lock problem several times when trying to disconnect BLE device using esp_ble_gap_disconnect(). Although the watchdog timer is enabled, no soft reset occurs when the CPUs are locked. The work around for this problem is mentioned in ESP32 ECO and Workarounds for Bugs document, which is to set a level 4 or level 5 priority interrupt timer to save the CPU from this state and as I understood, such interrupt can be only written in assembly is that correct ? if so is there any example I can use for constructing such interrupt.
Re: ESP32 Dual Core Live Lock Problem
Posted: Thu Mar 25, 2021 1:52 am
by ESP_Sprite
You can check how we implemented the livelock workaround in current ESP-IDF versions, the code is in /components/esp_system/port/soc/esp32/dport_panic_highint_hdl.S . However, this code should also be in the latest 4.0 release (v4.0.2, to be exact); are you sure that 1. you're actually running into this issue, and 2. you have an esp-idf version with the workaround but it somehow is disabled?
Re: ESP32 Dual Core Live Lock Problem
Posted: Tue Aug 30, 2022 3:02 pm
by ArslGG
Hello, I have the same problem, how did you solve it, please help. I've been trying to fix the problem for months.
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 1:28 am
by ESP_Sprite
ArslGG wrote: ↑Tue Aug 30, 2022 3:02 pm
Hello, I have the same problem, how did you solve it, please help. I've been trying to fix the problem for months.
What ESP-IDF version are you using? As stated before, any somewhat recent version of ESP-IDF has a workaround built in. Are you sure you're running into this specific issue, and not some other deadlock?
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 6:11 am
by ArslGG
My esp-idf version is 4. Where exactly can I look? i am using arduino ide
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 6:12 am
by ArslGG
No other problem esp32 crashes after 12-24-48 or longer. CPU freezes
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 6:43 am
by ArslGG
Exactly you will worry about this problem
viewtopic.php?p=102381#p102381
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 7:48 am
by ESP_Sprite
Suggest you start a new topic for that instead of tacking onto existing topic. Make sure to post as much info as you can: what hardware you use (including schematics if possible), what your software setup is (ideally also post the software if possible), what other things you tried etc.
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 9:38 am
by ArslGG
I am using esp32 wrover-e. Can you tell me what esp32 crashes do?
Re: ESP32 Dual Core Live Lock Problem
Posted: Wed Aug 31, 2022 9:39 am
by ArslGG
I am using i2c,uart in software.
I don't use freetos.