ESP32 core dump in flash
Posted: Sat Sep 02, 2017 9:42 am
In my application I get infrequent errors due to input from mqtt messages. I have two similar esp32 setups running which show the error at the same time. As it can take several days before an error occurs I try to catch it in flash to find the origin.
Have an issue using the core dump in flash.
My make menuconfig settings are:
Core dump destination (Flash)
Panic handler behaviour ( print registers and halt)
My partition table is:
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
ota_0,app,ota_0,0x110000,800K,
ota_1,app,ota_1,0x1e0000,800K,
coredump,data,coredump,0x2a8000,64K,
From this input, based on readthedocs I made following command:
jan@jan-jul-17:~$ python $IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -o 2785280 -s /home/jan/Desktop/coredump -m build/app-template.elf
the offset is the "int" for 0x2a8000
Output of the command (after an error) is:
espcoredump.py v0.1-dev
esptool.py v2.0.1
Connecting........_
Chip is ESP32D0WDQ6 (revision 0)
Uploading stub...
Running stub...
Stub running...
16 (100 %)
16 (100 %)
Read 16 bytes at 0x2a8000 in 0.0 seconds (12.8 kbit/s)...
Hard resetting...
A fatal error occurred: Invalid start magic number!
Please advise.
Have an issue using the core dump in flash.
My make menuconfig settings are:
Core dump destination (Flash)
Panic handler behaviour ( print registers and halt)
My partition table is:
# Espressif ESP32 Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,16K,
otadata,data,ota,0xd000,8K,
phy_init,data,phy,0xf000,4K,
factory,app,factory,0x10000,1M,
ota_0,app,ota_0,0x110000,800K,
ota_1,app,ota_1,0x1e0000,800K,
coredump,data,coredump,0x2a8000,64K,
From this input, based on readthedocs I made following command:
jan@jan-jul-17:~$ python $IDF_PATH/components/espcoredump/espcoredump.py info_corefile -t b64 -o 2785280 -s /home/jan/Desktop/coredump -m build/app-template.elf
the offset is the "int" for 0x2a8000
Output of the command (after an error) is:
espcoredump.py v0.1-dev
esptool.py v2.0.1
Connecting........_
Chip is ESP32D0WDQ6 (revision 0)
Uploading stub...
Running stub...
Stub running...
16 (100 %)
16 (100 %)
Read 16 bytes at 0x2a8000 in 0.0 seconds (12.8 kbit/s)...
Hard resetting...
A fatal error occurred: Invalid start magic number!
Please advise.