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.
ESP32 Dual Core Live Lock Problem
ESP32 Dual Core Live Lock Problem
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1
https://youtube.com/user/wardzx1
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 Dual Core Live Lock Problem
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
Hello, I have the same problem, how did you solve it, please help. I've been trying to fix the problem for months.
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 Dual Core Live Lock Problem
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
My esp-idf version is 4. Where exactly can I look? i am using arduino ide
Re: ESP32 Dual Core Live Lock Problem
No other problem esp32 crashes after 12-24-48 or longer. CPU freezes
Re: ESP32 Dual Core Live Lock Problem
Exactly you will worry about this problem
viewtopic.php?p=102381#p102381
viewtopic.php?p=102381#p102381
-
- Posts: 9772
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32 Dual Core Live Lock Problem
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
I am using esp32 wrover-e. Can you tell me what esp32 crashes do?
Re: ESP32 Dual Core Live Lock Problem
I am using i2c,uart in software.
I don't use freetos.
I don't use freetos.
Who is online
Users browsing this forum: Majestic-12 [Bot] and 79 guests