Monitor hangs decoding core dump
Posted: Thu Nov 02, 2023 2:37 am
I'm running IDF v4.4.6-98-g5f257494c5 With ADF.
When I trigger a coredump (using an assert(0) in code), I get the back trace of the faulting task and I see that the coredump is being received but then the monitor output stops and never resumes. The coredump is not decoded. How can I fix this or diagnose what is going wrong?
Alternatively, if I set up saving the coredump to flash, how can I retrieve it and decode it with 4.4.6 tools?
Thanks,
Felix
Below is an example of the monitor output.
When I trigger a coredump (using an assert(0) in code), I get the back trace of the faulting task and I see that the coredump is being received but then the monitor output stops and never resumes. The coredump is not decoded. How can I fix this or diagnose what is going wrong?
Alternatively, if I set up saving the coredump to flash, how can I retrieve it and decode it with 4.4.6 tools?
Thanks,
Felix
Below is an example of the monitor output.
Code: Select all
Backtrace: 0x40081fb2:0x3ffbfc70 0x4008b805:0x3ffbfc90 0x40093a01:0x3ffbfcb0 0x400ddd72:0x3ffbfdd0 0x400dde5f:0x3ffbfdf0 0x40176373:0x3ffbfe20 0x40176440:0x3ffbfe70
0x40081fb2: panic_abort at C:/Users/felix/espclean/esp-idf/components/esp_system/panic.c:408
0x4008b805: esp_system_abort at C:/Users/felix/espclean/esp-idf/components/esp_system/esp_system.c:137
0x40093a01: __assert_func at C:/Users/felix/espclean/esp-idf/components/newlib/assert.c:85
0x400ddd72: do_volume_plus_long_click at C:/Users/felix/source/beakbox/Firmware/beakbox3/main/buttons.c:72
0x400dde5f: buttons_event_handler at C:/Users/felix/source/beakbox/Firmware/beakbox3/main/buttons.c:335
(inlined by) buttons_event_handler at C:/Users/felix/source/beakbox/Firmware/beakbox3/main/buttons.c:313
0x40176373: handler_execute at C:/Users/felix/espclean/esp-idf/components/esp_event/esp_event.c:145
(inlined by) esp_event_loop_run at C:/Users/felix/espclean/esp-idf/components/esp_event/esp_event.c:590
0x40176440: esp_event_loop_run_task at C:/Users/felix/espclean/esp-idf/components/esp_event/esp_event.c:115 (discriminator 15)
ELF file SHA256: 8a7e2d8d8397f99a
Initiating core dump!
I (8748) esp_core_dump_uart: Press Enter to print core dump to UART...
I (8755) esp_core_dump_uart: Print core dump to uart...
Core dump started (further output muted)
Received 28 kB...
Core dump finished!