esp crashing but not rebooting

italocjs
Posts: 11
Joined: Thu Mar 10, 2022 6:15 pm

esp crashing but not rebooting

Postby italocjs » Mon Apr 03, 2023 5:40 pm

Hi, why when this crash happens the esp32 does not reboot as usual? is there some kind of setting which i could change to make sure that i does reboot? or would be best to make a separated hardware watchdog? (already tried to find the crash cause here viewtopic.php?f=19&t=32432 without any luck so far).

Code: Select all

assert failed: vTaskPriorityDisinheritAfterTimeout tasks.c:4895 (pxTCB->uxMutexesHeld)
Backtrace: 0x40083d89:0x3ffd6420 0x40093fdd:0x3ffd6440 0x400998ed:0x3ffd6460 0x40096987:0x3ffd6590 0x40095164:0x3ffd65b0 0x400d2ad3:0x3ffd65f0

  #0  0x40083d89:0x3ffd6420 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
  #1  0x40093fdd:0x3ffd6440 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
  #2  0x400998ed:0x3ffd6460 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
  #3  0x40096987:0x3ffd6590 in vTaskPriorityDisinheritAfterTimeout at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/tasks.c:4922 (discriminator 1)
  #4  0x40095164:0x3ffd65b0 in xQueueSemaphoreTake at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/freertos/queue.c:1750
  #5  0x400d2ad3:0x3ffd65f0 in task_accelerometer(void*) at src/xLog/MODULES/accelerometer.h:36
ELF file SHA256: ccbbf4f24c1844e2
<<FREEZES HERE>>
I'm using platformio with the default arduino framework.

italocjs
Posts: 11
Joined: Thu Mar 10, 2022 6:15 pm

Re: esp crashing but not rebooting

Postby italocjs » Wed May 03, 2023 2:47 pm

About the reason the crash was happening: I was processing some commands within the SerialBluetooth callback, this was probably causing an delay or stack issue and causing the weird issue. To fix it i've created an queue, and the only thing the callback does now is copy the rx buffer to this queue. then another freertos task do whatever it should do (process, forward, etc).

About the lack of reboot, not sure what happens but it crashes even the watchdog, would be nice to find out what is happening and trigger an panic/crash.

Who is online

Users browsing this forum: Google [Bot] and 111 guests