esp32 coredump to flash invalid SHA
Posted: Sun May 26, 2024 2:39 pm
I have enabled coredump to flash. I'm using the Eclipse Plugin, under MAC.
Operating System: mac os x
Java Runtime Version: 17.0.10+7
Eclipse Version: 4.31.100.v20240229-0520
Eclipse CDT Version: 11.5.0.202312062348
IDF Eclipse Plugin Version: 2.12.1.202402231119
ESP-IDF v5.1.2-dirty
Python set for IDF_PYTHON_ENV: Python 3.9.6
I have configured my partitions thusly;
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs, 0x9000,0x6000,
otadata,data,ota,0xf000,0x2000,
phy_init,data,phy,0x11000,0x1000,
coredump,data,coredump,,64K,
factory,app,factory,,2M,
ota_0,app,ota_0,,2M,
ota_1,app,ota_1,,2M,
I trigger a crash (assert(0)) , and get :
I (8149) esp_core_dump_flash: Save core dump to flash...
I (8156) esp_core_dump_flash: Erase flash 28672 bytes @ 0x12000
I (8581) esp_core_dump_flash: Write end offset 0x6044, check sum length 4
I (8581) esp_core_dump_flash: Core dump has been saved to flash.
CPU halted.
I then use the IDF command line tools to try and analyse the dump file:
idf.py coredump-info
And it fails like this:
Serial port /dev/cu.usbserial-1460
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting......
Detecting chip type... ESP32
WARNING:root:The core dump image offset is not specified. Use partition offset: 0x12000.
Failed to load core dump: Invalid application image for coredump: coredump SHA256(159728522d3b259f) != app SHA256().
I don't know what to try next. Can anyone help me?
Operating System: mac os x
Java Runtime Version: 17.0.10+7
Eclipse Version: 4.31.100.v20240229-0520
Eclipse CDT Version: 11.5.0.202312062348
IDF Eclipse Plugin Version: 2.12.1.202402231119
ESP-IDF v5.1.2-dirty
Python set for IDF_PYTHON_ENV: Python 3.9.6
I have configured my partitions thusly;
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs, 0x9000,0x6000,
otadata,data,ota,0xf000,0x2000,
phy_init,data,phy,0x11000,0x1000,
coredump,data,coredump,,64K,
factory,app,factory,,2M,
ota_0,app,ota_0,,2M,
ota_1,app,ota_1,,2M,
I trigger a crash (assert(0)) , and get :
I (8149) esp_core_dump_flash: Save core dump to flash...
I (8156) esp_core_dump_flash: Erase flash 28672 bytes @ 0x12000
I (8581) esp_core_dump_flash: Write end offset 0x6044, check sum length 4
I (8581) esp_core_dump_flash: Core dump has been saved to flash.
CPU halted.
I then use the IDF command line tools to try and analyse the dump file:
idf.py coredump-info
And it fails like this:
Serial port /dev/cu.usbserial-1460
Connecting....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting......
Detecting chip type... ESP32
WARNING:root:The core dump image offset is not specified. Use partition offset: 0x12000.
Failed to load core dump: Invalid application image for coredump: coredump SHA256(159728522d3b259f) != app SHA256().
I don't know what to try next. Can anyone help me?