Closed ABIoTsConnected closed 1 year ago
I am also working on this project. To add some info:
I think #10649 was supposed to have fixed this error.
Hi KaeLL, i tried this with master branch and with latest commit. The issue still exists.
This was tested with master branch where the head was commit 9f9bd8c0331a584b3933d9ba215f013ac1889c84.
I think https://github.com/espressif/esp-idf/pull/10649 was supposed to have fixed this error.
While the backtrace does look similar, I think the root cause is different in this case. This is because an RTOS mutex is being acquired inside a critical section, due to an ESP_LOGE call, which in turn is due to a recent regression which we will soon fix!
Thank you @igrr.
Is it known in which commit the regression happened? Is there a 5.2 commit that does not have this issue?
Is it known in which commit the regression happened?
Looks like it might have been e304db558b8d20bc20150dede2f035d12e39e2dd
Answers checklist.
IDF version.
5.2.0
Operating System used.
Windows
How did you build your project?
Eclipse IDE
If you are using Windows, please specify command line type.
None
Development Kit.
ESP32S3
Power Supply used.
USB
What is the expected behavior?
The system must enter the deep sleep without any crash.
esp_bluedroid_disable(); esp_bluedroid_deinit(); esp_bt_controller_disable(); esp_bt_controller_deinit();
What is the actual behavior?
The system crashes at an random place: 0x40375aca: panic_abort at C:/Users/suhas/esp/esp-idf/components/esp_system/panic.c:452
0x40381a75: esp_system_abort at C:/Users/suhas/esp/esp-idf/components/esp_system/port/esp_system_chip.c:90
0x403876ea: abort at C:/Users/suhas/esp/esp-idf/components/newlib/abort.c:38
0x4037705b: lock_acquire_generic at C:/Users/suhas/esp/esp-idf/components/newlib/locks.c:130
0x40377171: _lock_acquire_recursive at C:/Users/suhas/esp/esp-idf/components/newlib/locks.c:158
0x40377240: __retarget_lock_acquire_recursive at C:/Users/suhas/esp/esp-idf/components/newlib/locks.c:314 (discriminator 3)
0x4208dde1: __env_lock at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/stdlib/envlock.c:43
0x4208e871: _findenv_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/stdlib/getenv_r.c:84
0x4208e8f5: _getenv_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/stdlib/getenv_r.c:125
0x4208927f: _tzset_unlocked_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/time/tzset_r.c:28
0x4208924d: _tzset_unlocked at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/time/tzset.c:115
0x4207d90c: localtime_r at /builds/idf/crosstool-NG/.build/HOST-x86_64-w64-mingw32/xtensa-esp32s3-elf/src/newlib/newlib/libc/time/lcltime_r.c:34 (discriminator 8)
0x42097908: esp_log_system_timestamp at C:/Users/suhas/esp/esp-idf/components/log/log_freertos.c:84
0x4206eb78: temperature_sensor_power_release at C:/Users/suhas/esp/esp-idf/components/esp_hw_support/sar_periph_ctrl_common.c:50
0x42008609: phy_set_tsens_power at C:/Users/suhas/esp/esp-idf/components/esp_phy/src/phy_override.c:70
0x4037cea9: phy_xpd_tsens at ??:?
0x4037ca37: misc_modules_sleep_prepare at C:/Users/suhas/esp/esp-idf/components/esp_hw_support/sleep_modes.c:484 (inlined by) esp_sleep_start at C:/Users/suhas/esp/esp-idf/components/esp_hw_support/sleep_modes.c:598
0x4037cbcf: esp_deep_sleep_start at C:/Users/suhas/esp/esp-idf/components/esp_hw_support/sleep_modes.c:830
0x4200ae2b: NM52_enter_deepsleep() at D:/abiotsWorkspace/Lumen-electronics/NM52-Device/components/NM52_Sleep/NM52_Sleep.cpp:66
0x4200a360: Configmode_Task(void*) at D:/abiotsWorkspace/Lumen-electronics/NM52-Device/main/NM52-Device_main.cpp:624
0x403842ee: vPortTaskWrapper at C:/Users/suhas/esp/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162
Steps to reproduce.
Debug Logs.
More Information.
No response