This adds detection of UART core dumps to IDF monitor. By default, core dumps are not printed to the console, but are processed by espcoredump.py using 'info_corefile' command. The result is printed to stdout. This feature can be disabled in menuconfig. In the future this can be extended to allow running espcoredump.py with 'dbg_corefile' argument, which is similar to the current GDB Stub behavior. Related to IDF-52.
193 lines
7.6 KiB
Text
193 lines
7.6 KiB
Text
I (195) boot: Loaded app from partition at offset 0x10000
|
|
I (195) boot: Disabling RNG early entropy source...
|
|
I (196) cpu_start: Pro cpu up.
|
|
I (200) cpu_start: Application information:
|
|
I (205) cpu_start: Project name: hello-world
|
|
I (210) cpu_start: App version: v4.2-dev-172-gc9cc694dbb-dirty
|
|
I (217) cpu_start: Compile time: Feb 6 2020 17:57:45
|
|
I (223) cpu_start: ELF file SHA256: 83cfeb53c9c00c61...
|
|
I (229) cpu_start: ESP-IDF: v4.2-dev-172-gc9cc694dbb-dirty
|
|
I (236) cpu_start: Starting app cpu, entry point is 0x40081010
|
|
I (0) cpu_start: App cpu up.
|
|
I (246) heap_init: Initializing. RAM available for dynamic allocation:
|
|
I (253) heap_init: At 3FFAE6E0 len 00001920 (6 KiB): DRAM
|
|
I (259) heap_init: At 3FFB3F58 len 0002C0A8 (176 KiB): DRAM
|
|
I (265) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
|
|
I (272) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
|
|
I (278) heap_init: At 40089AC8 len 00016538 (89 KiB): IRAM
|
|
I (284) cpu_start: Pro cpu start user code
|
|
I (303) spi_flash: detected chip: generic
|
|
I (303) spi_flash: flash io: dio
|
|
W (303) spi_flash: Detected size(4096k) larger than the size in the binary image header(2048k). Using the size in the binary image header.
|
|
I (314) esp_core_dump_uart: Init core dump to UART
|
|
I (319) cpu_start: Starting scheduler on PRO CPU.
|
|
I (0) cpu_start: Starting scheduler on APP CPU.
|
|
Guru Meditation Error: Core 0 panic'ed (StoreProhibited). Exception was unhandled.
|
|
Core 0 register dump:
|
|
PC : 0x400e37f7 PS : 0x00060430 A0 : 0x800d0c31 A1 : 0x3ffb5db0
|
|
A2 : 0x00000001 A3 : 0x00000001 A4 : 0x00000001 A5 : 0x00060023
|
|
A6 : 0x00000001 A7 : 0x00060023 A8 : 0x00000001 A9 : 0x00000000
|
|
A10 : 0x7fffffff A11 : 0x8001f880 A12 : 0x06ff1ff8 A13 : 0x00000000
|
|
A14 : 0x3ffb7d80 A15 : 0x00000000 SAR : 0x00000014 EXCCAUSE: 0x0000001d
|
|
EXCVADDR: 0x00000001 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000
|
|
ELF file SHA256: 83cfeb53c9c00c61c4e52674e43654e4b452b7592075920977e491e06a4488d8
|
|
Backtrace: 0x400e37f4:0x3ffb5db0 0x400d0c2e:0x3ffb5dd0 0x40087015:0x3ffb5df0
|
|
I (401) esp_core_dump_uart: Press Enter to print core dump to UART...
|
|
Core Dump detected!
|
|
I (434) esp_core_dump_uart: Print core dump to uart...
|
|
I (434) esp_core_dump_elf: Found tasks: 8
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
espcoredump.py v0.4-dev
|
|
===============================================================
|
|
==================== ESP32 CORE DUMP START ====================
|
|
|
|
Crashed task handle: 0x3ffb5e80, name: '', GDB name: 'process 1073438336'
|
|
|
|
================== CURRENT THREAD REGISTERS ===================
|
|
exccause 0x1d (StoreProhibitedCause)
|
|
excvaddr 0x1
|
|
epc1 0x0
|
|
epc2 0x0
|
|
epc3 0x0
|
|
epc4 0x0
|
|
epc5 0x0
|
|
epc6 0x0
|
|
epc7 0x0
|
|
eps2 0x0
|
|
eps3 0x0
|
|
eps4 0x0
|
|
eps5 0x0
|
|
eps6 0x0
|
|
eps7 0x400e38bf
|
|
pc 0x400e37f7 0x400e37f7
|
|
lbeg 0x0 0
|
|
lend 0x0 0
|
|
lcount 0x0 0
|
|
sar 0x14 20
|
|
ps 0x60420 394272
|
|
threadptr <unavailable>
|
|
br <unavailable>
|
|
scompare1 <unavailable>
|
|
acclo <unavailable>
|
|
acchi <unavailable>
|
|
m0 <unavailable>
|
|
m1 <unavailable>
|
|
m2 <unavailable>
|
|
m3 <unavailable>
|
|
expstate <unavailable>
|
|
f64r_lo <unavailable>
|
|
f64r_hi <unavailable>
|
|
f64s <unavailable>
|
|
fcr <unavailable>
|
|
fsr <unavailable>
|
|
a0 0x800d0c31 -2146628559
|
|
a1 0x3ffb5db0 1073438128
|
|
a2 0x1 1
|
|
a3 0x1 1
|
|
a4 0x1 1
|
|
a5 0x60023 393251
|
|
a6 0x1 1
|
|
a7 0x60023 393251
|
|
a8 0x1 1
|
|
a9 0x0 0
|
|
a10 0x7fffffff 2147483647
|
|
a11 0x8001f880 -2147354496
|
|
a12 0x6ff1ff8 117383160
|
|
a13 0x0 0
|
|
a14 0x3ffb7d80 1073446272
|
|
a15 0x0 0
|
|
|
|
==================== CURRENT THREAD STACK =====================
|
|
#0 0x400e37f7 in ?? ()
|
|
#1 0x400d0c31 in ?? ()
|
|
#2 0x40087018 in ?? ()
|
|
|
|
======================== THREADS INFO =========================
|
|
Id Target Id Frame
|
|
* 1 process 1073438336 0x400e37f7 in ?? ()
|
|
2 process 1073442120 0x40087010 in ?? ()
|
|
3 process 1073440228 0x40087010 in ?? ()
|
|
4 process 1073444768 0x400812c4 in ?? ()
|
|
5 process 1073433584 0x400812c4 in ?? ()
|
|
6 process 1073412788 0x400812c4 in ?? ()
|
|
7 process 1073432444 0x40087e10 in ?? ()
|
|
8 process 1073413520 0x400812c4 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 2 (TCB: 0x3ffb6d48, name: '') =====================
|
|
#0 0x40087010 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 3 (TCB: 0x3ffb65e4, name: '') =====================
|
|
#0 0x40087010 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 4 (TCB: 0x3ffb77a0, name: '') =====================
|
|
#0 0x400812c4 in ?? ()
|
|
#1 0x40089806 in ?? ()
|
|
#2 0x400898f3 in ?? ()
|
|
#3 0x40087018 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 5 (TCB: 0x3ffb4bf0, name: '') =====================
|
|
#0 0x400812c4 in ?? ()
|
|
#1 0x4008913b in ?? ()
|
|
#2 0x400d0d5c in ?? ()
|
|
#3 0x40087018 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 6 (TCB: 0x3ffafab4, name: '') =====================
|
|
#0 0x400812c4 in ?? ()
|
|
#1 0x40087e10 in ?? ()
|
|
#2 0x400d1f4b in ?? ()
|
|
#3 0x40087018 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 7 (TCB: 0x3ffb477c, name: '') =====================
|
|
#0 0x40087e10 in ?? ()
|
|
#1 0x40081a2b in ?? ()
|
|
#2 0x40087018 in ?? ()
|
|
ERROR: GDB/MI command failed (error / msg="No symbol table is loaded. Use the \"file\" command.")!
|
|
|
|
==================== THREAD 8 (TCB: 0x3ffafd90, name: '') =====================
|
|
#0 0x400812c4 in ?? ()
|
|
#1 0x40087e10 in ?? ()
|
|
#2 0x40081a2b in ?? ()
|
|
#3 0x40087018 in ?? ()
|
|
|
|
======================= ALL MEMORY REGIONS ========================
|
|
Name Address Size Attrs
|
|
.data 0x400054 0x4 RW A
|
|
.coredump.tasks.data 0x3ffb5e80 0x15c RW
|
|
.coredump.tasks.data 0x3ffb5cf0 0x188 RW
|
|
.coredump.tasks.data 0x3ffb6d48 0x15c RW
|
|
.coredump.tasks.data 0x3ffb6c20 0x120 RW
|
|
.coredump.tasks.data 0x3ffb65e4 0x15c RW
|
|
.coredump.tasks.data 0x3ffb64b0 0x12c RW
|
|
.coredump.tasks.data 0x3ffb77a0 0x15c RW
|
|
.coredump.tasks.data 0x3ffb75d0 0x1c8 RW
|
|
.coredump.tasks.data 0x3ffb4bf0 0x15c RW
|
|
.coredump.tasks.data 0x3ffb4a40 0x1a8 RW
|
|
.coredump.tasks.data 0x3ffafab4 0x15c RW
|
|
.coredump.tasks.data 0x3ffaf8e0 0x1cc RW
|
|
.coredump.tasks.data 0x3ffb477c 0x15c RW
|
|
.coredump.tasks.data 0x3ffb45d0 0x1a4 RW
|
|
.coredump.tasks.data 0x3ffafd90 0x15c RW
|
|
.coredump.tasks.data 0x3ffb41b0 0x1c0 RW
|
|
|
|
===================== ESP32 CORE DUMP END =====================
|
|
===============================================================
|
|
Done!
|
|
I (1859) esp_core_dump_uart: Core dump has been written to uart.
|
|
Rebooting...
|
|
ets Jun 8 2016 00:22:57
|
|
rst:0xc (SW_CPU_RESET),boot:0x1e (SPI_FAST_FLASH_BOOT)
|
|
configsip: 0, SPIWP:0xee
|
|
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
|
|
mode:DIO, clock div:2
|
|
load:0x3fff0030,len:4
|
|
load:0x3fff0034,len:7148
|
|
load:0x40078000,len:14220
|
|
ho 0 tail 12 room 4
|
|
load:0x40080400,len:4584
|
|
0x40080400: _init at ??:?
|