ESP32 Dual Core Live Lock Problem

User avatar
WardMas
Posts: 72
Joined: Fri Jun 19, 2020 9:09 am

ESP32 Dual Core Live Lock Problem

Postby WardMas » Wed Mar 24, 2021 11:07 am

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.
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1

ESP_Sprite
Posts: 9025
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Dual Core Live Lock Problem

Postby ESP_Sprite » Thu Mar 25, 2021 1:52 am

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?

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » 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.

ESP_Sprite
Posts: 9025
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Dual Core Live Lock Problem

Postby ESP_Sprite » Wed Aug 31, 2022 1:28 am

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?

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » Wed Aug 31, 2022 6:11 am

My esp-idf version is 4. Where exactly can I look? i am using arduino ide

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » Wed Aug 31, 2022 6:12 am

No other problem esp32 crashes after 12-24-48 or longer. CPU freezes

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » Wed Aug 31, 2022 6:43 am

Exactly you will worry about this problem
viewtopic.php?p=102381#p102381

ESP_Sprite
Posts: 9025
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32 Dual Core Live Lock Problem

Postby ESP_Sprite » Wed Aug 31, 2022 7:48 am

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.

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » Wed Aug 31, 2022 9:38 am

I am using esp32 wrover-e. Can you tell me what esp32 crashes do?

ArslGG
Posts: 8
Joined: Sat Aug 27, 2022 5:47 am

Re: ESP32 Dual Core Live Lock Problem

Postby ArslGG » Wed Aug 31, 2022 9:39 am

I am using i2c,uart in software.
I don't use freetos.

Who is online

Users browsing this forum: No registered users and 199 guests