Closed toml2 closed 2 years ago
Hi @toml2, The files in "out_01.zip" were generated with ESP-IDF v3.3.5. Thus, they are only compatible with Arduino 1.0.6. Basically, I took ESP-IDF v3.3.5 framework, I enabled the "CoreDump to flash" option, I built the libraries for Arduino (thanks to the "esp32-arduino-lib-builder") and I put the output in the "out_01.zip" file.
Arduino 2.0.1 is based on ESP-IDF 4.4 Arduino 2.0.2 is based on ESP-IDF 4.4-beta1
If you want, I can build for you the new Arduino libraries. Which version of Arduino do you want to use? Arduino 2.0.2 uses a beta version of the ESP-IDF so it is more secure to use the 2.0.1. But maybe you need the very new functionalities?
Can you share with me the content of your platformio.ini that I can test what I will generate?
Thanks, that will be much appreciated, here goes (it is everything a bit verbose):
My IDF version: v4.4-beta1-189-ga79dc75f0a
[env:esp32dev] platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream board = esp32dev framework=arduino platform_packages = platformio/toolchain-xtensa32@^2.50200.97 platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.2 platformio/tool-esptoolpy@^1.30100.210531 lib_deps = arduino-libraries/Arduino_JSON@^0.1.0 board_upload.flash_size = 16MB board_upload.maximum_size = 16777216 board_build.partitions = Tom16MBmin_spiffs.csv build_flags = ; -DCONFIG_ESP_COREDUMP_ENABLE=y ; -DCONFIG_ESP_COREDUMP_ENABLE_TO_FLASH=y ; -DCONFIG_ESP_COREDUMP_DATA_FORMAT_ELF=y ; -DCORE_DEBUG_LEVEL=4 ; -DCONFIG_ESP_COREDUMP_MAX_TASKS_NUM=64 ; -DCONFIG_ESP_COREDUMP_CHECKSUM_CRC32=y ;build_unflags = DCONFIG_ESP_COREDUMP_ENABLE_TO_NONE=y board_build.f_cpu = 240000000L board_build.f_flash = 40000000L board_build.flash_mode = qout monitor_speed = 115200 monitor_filters = colorize, direct extra_scripts = extra_script.py ;build_type = release build_type = debug
Hi @toml2
I think that I did it!
Replace your "platform_packages" by that one:
platform_packages = platformio/toolchain-xtensa32@^2.50200.97 ;platformio/framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.2 MathieuDeprez/ESP32_CoreDump_Arduino_2.0.2 @ https://github.com/MathieuDeprez/ESP32_CoreDump_Arduino_2.0.2.git#main platformio/tool-esptoolpy@^1.30100.210531 lib_deps = arduino-libraries/Arduino_JSON@^0.1.0
And please, tell me if it works ^^
Thanks so much. No joy so far. Discovered the platform.ini can be touchy about a lack of spaces after a newline.
After a bit managed to confirm that it compiled with your package (the .c6d24f3 key matches what is on github for your project), eg:
_PACKAGES:
Dove in a bit further not sure if it is critical but the #define CONFIG_ESP_COREDUMP_ENABLE_TO_FLASH or CONFIG_ESP_COREDUMP_DATA_FORMAT_ELF
is never defined during the compilation process.
If I persist and cause my test crash function I see no indication of it going to flash (maybe just me, I am sure I have seen screen dumps where it will say so)
If I go further and verify with your coredump function I get no results.
I added some ifdef's to try to see if it the defines for core dumping to flash gets set. They reveal not to be set. Not sure if it is critical.
Will try to create a new project later which will be empty, hopefully it will work then.
@toml2 ,
Indeed, I have made a mistake and I didn't manage to create a gitHub repo which compiles everything properly...
But! It works when you paste the content of the "out" folder into your "/home/yourName/.platformio/packages/framework-arduinoespressif32" folder. GitHub Repo 2.0.0
I also put your platformio.ini file and a partition table with a coreDump section. (I hope it doesn't bother you for your platformio.ini file)
I tested it and it works so tell me if you manage to make it work for you too and I will close this issue.
Thanks again, I get a number of errors if I paste the section and overwrite the files. I cleared arduinoespressif32 directory then got vscode to fetch it again and then did overwrite. (Did it twice and compiled many times)
eg:
error: 'BluetoothSerial' does not name a type
Will appear CONFIG_BT_ENABLED is not enabled?
Hi, I can’t decode the dump here the output from espcoredump.py
espcoredump.py v0.4-dev
Traceback (most recent call last):
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 295, in <module>
info_corefile()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 98, in info_corefile
core_filename, loader = core_prepare()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 66, in core_prepare
loader.create_corefile(exe_name=args.prog)
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 224, in create_corefile
self._validate_dump_file()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 203, in _validate_dump_file
self._crc_validate()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 208, in _crc_validate
data_crc = binascii.crc32(EspCoreDumpV2Header.build(self.core_src.header) + self.core_src.data) & 0xffffffff
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 336, in build
self.build_stream(obj, stream, **contextkw)
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 348, in build_stream
self._build(obj, stream, context, "(building)")
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 2001, in _build
subobj = obj[sc.name] # raises KeyError
KeyError: 'segs_num'
That’s the command: python3 /Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py info_corefile -c ./coredump.b64 -t b64 ./firmware.elf
What’s wrong?
Thanks
@toml2 ,
I updated the GitHub repo with the BluetoothClassic functionnality.
Hi @MassimilianoMontagni98 ,
I managed to decode my coredump, here is the output :
```
espcoredump.py info_corefile -c ./coredump.txt -t b64 -rom-elf ./.pio/build/esp32dev/firmware.elf
espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================
Crashed task handle: 0x3ffce418, name: 'loopTask', GDB name: 'process 1073538072'
================== CURRENT THREAD REGISTERS ===================
exccause 0x6 (IntegerDivideByZeroCause)
excvaddr 0x0
epc1 0x400df00f
epc2 0x0
epc3 0x0
epc4 0x0
epc5 0x0
epc6 0x0
eps2 0x0
eps3 0x0
eps4 0x0
eps5 0x0
eps6 0x0
pc 0x400d28a1 0x400d28a1
Did you installed the good "esp-idf" and "xtensa-esp32-elf" version ?
Thanks, I am getting it to dump to the flash now :)
Next challenge is getting it decoded.
@MathieuDeprez Thanks for your reply, I have esp-idf ver 4.3.1 and the xtensa esp-2021r1-8.4.0 I’m on macOS
At run time I get this version for the IDF IDF VERSION: v4.4-beta1
At run time I get this version for the IDF IDF VERSION: v4.4-beta1
I even tried with 4.4-beta1 but still not working
Seems we have different issues, I am struggling with version issues wondering if my dump is not corrupted?
File "D:\Esp32\v4.4-beta1\esp-idf-v4.4-beta1\components\espcoredump\corefile\loader.py", line 179, in _load_core_src raise ESPCoreDumpLoaderError('Core dump version "0x%x" is not supported!' % self.dump_ver) corefile.ESPCoreDumpLoaderError: Core dump version "0x0" is not supported!
@MathieuDeprez May I provide you my elf file and the base64 coredump in order to try if you can decode it?
A little more progress on my side. After a while I realized that the dump produced must be in ELF format. However the signature did not match. ELF files seemingly must start with 7F454C46 hex or .
After some scratching I realized there is an offset problem with the partitions (I am using Mathieu's partition setup). It seems the partitions are not aligned properly. If delete the fluff before the magic key then I get much closer and the decoding process begins.
Here is a screenshot of my hex dump and chars I had to remove
Hopefully it will help others as well. Have not fixed the alignment issue on the partition yet or made sure that is in fact the cause of my alignment problems on the dump.
In my case the following command seems to be getting me closer to a win:
python3 espcoredump.py --chip esp32 info_corefile -c coredump.b64 -t elf c:\users\
(I had to call the install.bat and export.bat found in my esp-idf-v4.4-beta1 again, export crashed due to long path had to gpedit it in, (windows do have some strange limits that still exist at times)
@MassimilianoMontagni98 , Yes of course you can send me your files.
@toml2, You can send me your files too if you want. It is weird because in my case, I convert the entire hex String to a base64 format and it works well. I am using Ubuntu so maybe this is why...
For example:
``` e4400000000100000000000000000000000000007f454c4601010100000000000000000004005e00010000000000000034000000000000000000000034002000180028000000000004000000340300000000000000000000201a0000201a0000060000000000000001000000541d000018e4fc3f18e4fc3f5801000058010000060000000000000001000000ac1e000090e2fc3f90e2fc3f80010000800100000600000000000000010000002c20000008ccfb3f08ccfb3f580100005801000006000000000000000100000084210000c0d1fb3fc0d1fb3fa0010000a00100000600000000000000010000002423000068d3fb3f68d3fb3f58010000580100000600000000000000010000007c24000020d9fb3f20d9fb3fa0010000a00100000600000000000000010000001c260000ccc0fb3fccc0fb3f580100005801000006000000000000000100000074270000a0f3fc3fa0f3fc3fd0010000d0010000060000000000000001000000442900007ca0fb3f7ca0fb3f58010000580100000600000000000000010000009c2a0000e07cfb3fe07cfb3fe0010000e00100000600000000000000010000007c2c0000dca5fb3fdca5fb3f5801000058010000060000000000000001000000d42d000010a4fb3f10a4fb3fc4010000c4010000060000000000000001000000982f00004849fd3f4849fd3f5801000058010000060000000000000001000000f03000006047fd3f6047fd3fe0010000e0010000060000000000000001000000d0320000905cfd3f905cfd3f580100005801000006000000000000000100000028340000a05afd3fa05afd3fe8010000e8010000060000000000000001000000103600001c77fd3f1c77fd3f5801000058010000060000000000000001000000683700003075fd3f3075fd3fe4010000e40100000600000000000000010000004c3900003cb7fb3f3cb7fb3f5801000058010000060000000000000001000000a43a000080b5fb3f80b5fb3fb4010000b4010000060000000000000001000000583c00002c35fd3f2c35fd3f5801000058010000060000000000000001000000b03d00003033fd3f3033fd3ff4010000f4010000060000000000000004000000a43f0000000000000000000014010000140100000600000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000018e4fc3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a1280d4020030600fd1400400d150040ffffffff1e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008c5a0d8050e3fc3f1c3efc3f01000000210006002300060001000000230a06000000000030e3fc3f0c0000000a0000000400000080e1fc3f010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000008ccfb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000da941640200106000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085fa0d8080d2fb3f00000000010000000100000001000080e000f03f01000000b2f50d8050d2fb3f00000000481d00402006060023060600010000002c24084000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000068d3fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000da941640200306000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085fa0d80e0d9fb3f000000000000000001000000010000800300000023000600b2f50d80b0d9fb3f00000000230806002008060023080600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000ccc0fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f08402000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004620098060f4fc3f00000000ffffffffe8bffb3f40eafb3f0300000023000600342f088040f4fc3fdc00f03f01000000a0dcfb3f23000600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000007ca0fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000232f0840200406000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0880a07dfb3fdc00f03f01000000a0dcfb3f2304060001000000040000000a2f0880807dfb3fa046fc3f000000002304060023040600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000dca5fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200b06000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980d0a4fb3f01000000ffffffffc47ffb3f5049fd3f010000001c00f43f342f0880b0a4fb3fe000f03f01000000a0dcfb3f230b0600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000004849fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200306002d1400403a140040f8ffffff1900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd2109802048fd3f00000000ffffffff883afd3f000000000000000001000000342f08800048fd3fdc00f03f01000000a0dcfb3f2303060001000000000000ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000905cfd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980605bfd3f00000000ffffffffd051fd3f000000000000000001000000342f0880405bfd3fdc00f03f01000000a0dcfb3f230f0600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000001c77fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980f075fd3f00000000ffffffff5c64fd3f000000000000000001000000342f0880d075fd3fdc00f03f01000000a0dcfb3f230f060001000000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000003cb7fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0bf0040200f060000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d45098040b6fb3f00000000230f0600200f0600230f060001000000000000000a2f088010b6fb3fa846fc3f230f0600200f0600230f0600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000002c35fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046200980f033fd3f00000000ffffffffc0cafb3f000000000000000001000000342f0880d033fd3fdc00f03f01000000a0dcfb3f230f060001000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050e2fc3fb0e3fc3f29350000a447fc3fa447fc3f18e4fc3f9c47fc3f18000000284bfd3f284bfd3f18e4fc3f000000000100000014c4fc3f6c6f6f705461736b00286bcabcd637000100000010e4fc3f0100000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fc3fefbeaddea1280d40300306008c5a0d8050e3fc3f1c3efc3f01000000210006002300060001000000230a06000000000030e3fc3f0c0000000a0000000400000080e1fc3f01000000010000001e0000000600000000000000fd1400400d150040ffffffff0400000080e1fc3ff44008404455fa3f000000000000000000000000ffff3fb3000000000000000000000000000000000000000000000000000000000000000080e1fc3f0100000001000000c442098070e3fc3f0000000000000000210006002300060001000000230a06000000000090e3fc3f745a0d400000000023000600a447fc3faccafb3f0000000000000000b0e3fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000bce3fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0d1fb3f00d3fb3f253062cd70d3fb3f9047fc3f08ccfb3f8847fc3f190000008cac8a7b4ef49c8008ccfb3f000000000000000064cdfb3f49444c450034bb0f688b88fbca20da000000000060d3fb3f0000000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002fb3f58410840da9416403001060085fa0d8080d2fb3f00000000010000000100000001000080e000f03f01000000b2f50d8050d2fb3f00000000481d00402006060023060600010000002c2408401e000000ffff0000000000000000000000000000000000005c43084023060600600e09409444f93f000000000000000000000000ffff3fb3000000000000000000000000000000000000000000000000000000002006060023060600010000002c240840c8280980a0d2fb3f08000000000000000100000001000080e000f03f01000000c4420980c0d2fb3f00000000000000000100000023000600010000002301060000000000e0d2fb3fbc28094000000000230006009047fc3f68d3fb3f000000000000000000d3fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cd3fb3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020d9fb3f60dafb3f8ae1ceff9047fc3f10ccfb3f68d3fb3f8847fc3f190000008a0abb55441d80b368d3fb3f0000000000000000c4d4fb3f49444c4500826ecd2a128697f30e0d0001000000c0dafb3f0000000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002fb3f58410840da9416403003060085fa0d80e0d9fb3f000000000000000001000000010000800300000023000600b2f50d80b0d9fb3f0000000023080600200806002308060001000000000000001e000000ffff0000000000000000000000000000000000005c43084023080600600e0940f44bf93f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000020080600230806000100000000000000c828098000dafb3f080000000100000001000000010000800300000023000600c442098020dafb3f0000000000000000010000002300060001000000000000000000000040dafb3fbc28094000000000230006009047fc3f08ccfb3f000000000000000060dafb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006cdafb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0f3fc3f10f5fc3fa5a5a5a584a0fb3f0c47fc3fccc0fb3f0447fc3f0f000000c8bffb3fc8bffb3fccc0fb3fc0bffb3f0a00000074e5fc3f7370705f747800a5a5a5a5a5a5a5a5000000000070f5fc3f0a00000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840342f0840300006004620098060f4fc3f00000000ffffffffe8bffb3f40eafb3f0300000023000600342f088040f4fc3fdc00f03f01000000a0dcfb3f23000600010000000000000000000000ffff0000000000000000000000000000000000005c43084023000600600e0940a466fa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5392d0d8080f4fc3f9cbffb3fc0f4fc3f10f5fc3f000000000000000000000000c4420980c0f4fc3f000000000000000000000000230c00000000000000000000ffffffff000000000000000000000000e8bffb3f01000000010000000000000000000000f0f4fc3f202d0d400000000000000000000000000000000000000000230006005848fc3fccc0fb3f000000000000000010f5fc3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cf5fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e07cfb3f607efb3fcec1700fe4a5fb3fd4c0fb3f7ca0fb3f0447fc3f01000000987afb3f987afb3f7ca0fb3f907afb3f18000000c47afb3f697063300089aaecffe34f950fbaf70000000000c07efb3f1800000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840232f084030040600342f0880a07dfb3fdc00f03f01000000a0dcfb3f2304060001000000040000000a2f0880807dfb3fa046fc3f000000002304060023040600010000000100000003000000ffff0000000000000000000000000000000000005c43084023040600600e0940f4eff83f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000020e4fc3f01000000230f060003000000dd210980c07dfb3f00000000ffffffff000000005c43084020e4fc3f600e0940b3bc0880e07dfb3f6c7afb3fb87afb3fb87afb3f20e4fc3f01000000230f0600c4420980207efb3f000000000000000000000000380c00000000000000000000ffffffff207efb3f000000002c2408400100000001000000000000000100000000000000407efb3f84bc084000000000000000007049fc3f7ca0fb3f0100000000000000607efb3f000000000000000000000000000000000000000000000000bb9c1680b03bfe3ffc46fc3f0000000000000000000000006c7efb3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010a4fb3f70a5fb3f7135ae1c5049fd3f84a0fb3fdca5fb3f0447fc3f01000000a47ffb3fa47ffb3fdca5fb3f9c7ffb3f18000000d8a1fb3f69706331009b9fc1f399b03dd899070001000000d4a5fb3f1800000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840342f0840300b0600dd210980d0a4fb3f01000000ffffffffc47ffb3f5049fd3f010000001c00f43f342f0880b0a4fb3fe000f03f01000000a0dcfb3f230b0600010000000100000000000000ffff0000000000000000000000000000000000005c430840230b0600600e09400417f93f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000ffff3fb3000000000000000000000000b3bc0880f0a4fb3f787ffb3fc47ffb3f4c000084230b06000100000001000000c442098030a5fb3f010000000000000000000000d40d0000010000001c00f43fffffffff30a5fb3f010000002c240840010000000100000000000000010000000000000050a5fb3f84bc084001000000010000007049fc3fdca5fb3f000000000000000070a5fb3f0000000000000000000000000000000000000000000000005a300880607dfe3f803e0000c0e0490100000000000000007ca5fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006047fd3fe048fd3fb0f2ab0f985cfd3fe4a5fb3f4849fd3f0447fc3f06000000683afd3f683afd3f4849fd3f603afd3f13000000443bfd3f4254435f5441534b00b8efbff377d300000000004049fd3f1300000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f084030030600dd2109802048fd3f00000000ffffffff883afd3f000000000000000001000000342f08800048fd3fdc00f03f01000000a0dcfb3f2303060001000000000000ff19000000ffff0000000000002d1400403a140040f8ffffff5c43084023030600600e094074bafa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000602109802048fd3fa046fc3f303afd3f146511804048fd3f3c3afd3f883afd3f00000000000000000000000001000000e66111808048fd3fc037fd3fffffffff00000000200e00003493fd3fd48cfd3fffffffff8048fd3fcc37fd3fe48cfd3f01000000010000000000000001000000c4420980a048fd3f0200000002000000d837fd3f23000600010000002304060000000000c048fd3fd461114040e2fc3fb037fd3f0c49fc3f4849fd3f0000000000000000e048fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ec48fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a05afd3f205cfd3fcaad796b2477fd3f5049fd3f905cfd3f0447fc3f03000000b051fd3fb051fd3f905cfd3fa851fd3f160000008c52fd3f68636954009ed9b5aac134ddc39e180000000000885cfd3f1600000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f0600dd210980605bfd3f00000000ffffffffd051fd3f000000000000000001000000342f0880405bfd3fdc00f03f01000000a0dcfb3f230f0600010000000100000020000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e0940b4cdfa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000a5571180805bfd3f5452fd3f0000000014651180805bfd3f8451fd3fd051fd3f040000000200000062b4413f01000000e6611180c05bfd3ff84efd3fffffffff000000002b0e00005c00000001000000ffffffffc05bfd3f00000000188bfd3f01000000010000000000000001000000c4420980e05bfd3f02000000020000005850fd3f23000600010000002309060000000000005cfd3fd46111409047fd3fe84efd3f4849fc3f905cfd3f0000000000000000205cfd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c5cfd3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003075fd3fb076fd3fbfd1168544b7fb3f985cfd3f1c77fd3f0447fc3f050000003c64fd3f3c64fd3f1c77fd3f3464fd3f140000001865fd3f4254555f5441534b000cc64485893500000000001477fd3f1400000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f0600dd210980f075fd3f00000000ffffffff5c64fd3f000000000000000001000000342f0880d075fd3fdc00f03f01000000a0dcfb3f230f060001000000ff00000004000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e094044e8fa3f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000066650980f075fd3fa046fc3f00000010146511801076fd3f1064fd3f5c64fd3f000000006063fd3f64000000ff000000e66111805076fd3fbc62fd3fffffffff000000002c0e00006300000001000000ffffffff5076fd3f248dfd3ff4950f4001000000010000000000000001000000c44209807076fd3f010000000100000000170000230006000100000023020600000000009076fd3fd46111409047fd3fac62fd3f2049fc3f1c77fd3f0000000000000000b076fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc76fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b5fb3fd0b6fb3f713af0603435fd3f2477fd3f3cb7fb3f0447fc3f030000009ae9d85c345161c93cb7fb3f000000001600000038a7fb3f6573705f74696d657200d03bdc563c000000000034b7fb3f1600000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000100fb3f58410840f0bf0040300f06001d45098040b6fb3f00000000230f0600200f0600230f060001000000000000000a2f088010b6fb3fa846fc3f230f0600200f0600230f0600010000000000000010000000ffff0000000000000000000000000000000000005c430840230f0600600e09406428f93f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000d0b6fb3f000000000000000000000000ba3e098050b6fb3fa046fc3f00000000b73c0e8070b6fb3f00000000010000006b2d000078e2fb3f7c45403f903bfe3fc442098090b6fb3f000000000000000008f3fb3f000000001e1edef0f908b20000000000b0b6fb3fa83c0e4000000000230006004849fc3f3cb7fb3f0000000000000000d0b6fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dcb6fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003033fd3fc034fd3f7cbc25b90c47fc3f44b7fb3f2c35fd3f0447fc3f02000000a0cafb3fa0cafb3f2c35fd3f98cafb3f170000002825fd3f6274436f6e74726f6c6c6572004a8100000000002435fd3f1700000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f060046200980f033fd3f00000000ffffffffc0cafb3f000000000000000001000000342f0880d033fd3fdc00f03f01000000a0dcfb3f230f0600010000000100000015000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e094054a6fa3f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000000000000f033fd3f200f060000000000da4908801034fd3f74cafb3f7034fd3fd436fd3f000000000000000001000000458313805034fd3fd4cafb3f7034fd3f000000001b3400000000000001000000ffffffff5034fd3f48450e4088b1fc3fc0cafb3f010000000100000000000000c44209807034fd3f606dfc3f02000000ffffffff2300060001000000230b060000000000a034fd3f2c8313400000000000000000000000000000000000000000c8490840506efc3f000000000000000000000000c034fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc34fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000480000004a2000004553505f434f52455f44554d505f494e464f00000001000030303030303030303030303030303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000094000000a502000045585452415f494e464f000018e4fc3fe800000006000000ee00000000000000c200000000000000c300000000000000c400000000000000c500000000000000c600000000000000b10000000ff00d40b200000000000000b300000000000000b400000000000000b500000000000000b60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067bff30330303030303030300000000000000000000000000000000000000000 ```
My firmware.elf
Thanks, I am getting closer I am getting a nasty little one. The internet suggest I reinstall pygdbmi but that does not work for me.
Traceback (most recent call last):
File "D:\Esp32\v4.4-beta1\esp-idf-v4.4-beta1\components\espcoredump\espcoredump.py", line 354, in
@toml2 , Maybe it is a problem of version, which version of pygdbmi do you have ?
You can try that to have the version required by ESP-IDF
pip3 uninstall pygdbmi
pip3 install pygdbmi==0.9.0.3
@MathieuDeprez
Here my files
7BYAAAEAAAAHAAAAZAEAAFiA+z8wHvs/VCD7P2Ad+z/wH/s/wuFLlrAN/D+wDfw/WID7P6gN/D8YAAAAFH77PxR++z9YgPs/AAAAAAEAAABYAPs/bG9vcFRhc2sA0G5dpxBhAAEAAABUIPs/AAAAACAFBgABAAAAAAAAAEzb+z8EYw5AAAAAAKxl+z8UZvs/fGb7PwAAAAAAAAAAAQAAAAAAAABIf0A/AAAAAEgdAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApcueMYEAgNtQCEAwDQYAAFUIgPAe+z8EAASALwAAAAwAAAD/////AAAAAP7///8AAAAA0B77PwAAAAABAAAALx77PzEAAAAAAAAAMh77PwQ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AAAAAAEh/QD8AAAAASB0AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADJgBkMLAhAYB0IQDAABgBQawiAUHj7PwAAAACID/w/iA/8PwEAAAAgAAYAAAAAAGAdCIAwePs/3ADwPwEAAADg3Ps/AQAAACMABgAAAAAAAAAAAKWlpaWlpaWlAAAAAAAAAAAAAAAADC4IQAEAAABcjwhAOLD6PwAAAAAAAAAAAAAAAP//P7MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADCwIQABtCEAwAAUAAAAAAP88DoBwePs/nP/6PwAAAAAAAAAA7DwOQAAAAAAAAAAACG0IgLB4+z8AAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAA6P/6PwAAAAABAAAAIwAGAAAAAADQePs/7DwOQAAAAAAjAAYAbHn7PwAAAAABAAAAAAAAAPB4+z8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8ePs/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAtYqjAAAAAAhtCICwePs/AAAAAAAAAAA=
@MassimilianoMontagni98 ,
Indeed, there is a problem... As @toml2 mentioned, your elf file should start with or contain "7F454C46" (hex value) and it is not the case for yours, I couldn't find this value...
Does your partition table contain a "coredump" section? Are you using my "readCoreDump()" function to print it or did you make your own?
```
espcoredump.py info_corefile -c ./coreDumpMontagni.b64 -t b64 -rom-elf ./firmwareMontagni.elf
espcoredump.py v0.4-dev
Traceback (most recent call last):
File "/home/mathieu/esp/esp-idf/components/espcoredump/espcoredump.py", line 350, in
I just opened my firmware.elf
with an hex editor and I clearly see the 0x7F 0x45 0x4C 0x46
sequence
Wait you mean that the core dump must have that sequence as the .elf file right?
Yeah the start sequence of the core dump is: ec16000001
I'm using your readCoreDump()
function and I just removed the esp_core_dump_image_erase()
function call
This is my partition table
# ESP-IDF Partition Table
# Name, Type, SubType, Offset, Size, Flags
nvs,data,nvs,0x9000,20K,
otadata,data,ota,0xe000,8K,
app0,app,ota_0,0x10000,1920K,
app1,app,ota_1,0x1f0000,1920K,
spiffs,data,spiffs,0x3d0000,128K,
coredump,data,coredump,0x3f0000,64K
@MassimilianoMontagni98 Yes sorry, I meant the coredump must have the sequence. In the menuconfig of ESP-IDF with which a build this custom version, I selected "ELF" for the coredump format so the coredump and the firmware.elf should have the sequence "7F 45 4C 46".
Here is the start of my Coredump in Hex format:
c4 40 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 04 00 5e 00 01 00 00 00 00 00 00 00 34 00 00 00 00 00 00 00 00 00 00 00 34 00 20 00 18 00 28 00 00 00 00 00 04 00 00 00 34 03 00 00 00 00 00 00 00 00 00 00 20 1a 00 00 20 1a 00 00 06 00 00 00 00 00 00 00 01 00 00 00 54 1d 00 00 18 e4 fc 3f 18 e4 fc 3f 58 01 00 00 58 01 00 00 06 00 00 00 00 00 00 00 01 00 00 00 ac 1e 00 00 90 e2 fc 3f 90 e2 fc 3f 80 01 00 00 80 01 00 00 06 00 00 00 00 00 00 00 01 00 00
So while you don't manage to have the sequence in your coredump, I don't think you will manage to decode it. Your partition table seems right.
Umh... I don't have any good idea right now to fix your problem but if you want, you can send me your "platformio.ini", "main.cpp" (juste the part that read the coredump) and I can try with one of my esp32 board to see if it work for me.
@MathieuDeprez I retried by cloning your repo and I still have the same issue
✘ massimilianomontagni@MacBook-Pro-di-Massimiliano ~/Downloads/ESP32_CoreDump_Arduino_1.0.6-master python3 /Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py info_corefile -c ./coreDump.b64 -t b64 -rom-elf ./.pio/build/esp32dev/firmware.elf
espcoredump.py v0.4-dev
Traceback (most recent call last):
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 350, in <module>
temp_core_files = info_corefile()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 149, in info_corefile
core_elf_path, target, temp_files = get_core_dump_elf(e_machine=exe_elf.e_machine)
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/espcoredump.py", line 75, in get_core_dump_elf
loader.create_corefile(exe_name=args.prog, e_machine=e_machine)
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 239, in create_corefile
self._validate_dump_file()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 214, in _validate_dump_file
self._crc_validate()
File "/Users/massimilianomontagni/esp/esp-idf/components/espcoredump/corefile/loader.py", line 220, in _crc_validate
EspCoreDumpV2Header.build(self.core_src.header) + self.core_src.data) & 0xffffffff # type: ignore
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 336, in build
self.build_stream(obj, stream, **contextkw)
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 348, in build_stream
self._build(obj, stream, context, "(building)")
File "/usr/local/lib/python3.9/site-packages/construct/core.py", line 2001, in _build
subobj = obj[sc.name] # raises KeyError
KeyError: 'segs_num'
@MassimilianoMontagni98 I think there is a confusion.
This repo link is for Arduino 1.0.6 and ESP-IDF v3.3
In this issue #4 where we are right now, toml2 wanted the CoreDump functionnality but with Arduino 2.0.2 which use ESP-IDF v4.4Beta1. For that, I created a new repo here
Now, you have to decide which version of Arduino do you want to use: 1.0.6 or 2.0.2 and install the corresponding version of ESP-IDF.
Hi @MassimilianoMontagni98
Did you found a solution for your problem? If everything is working as expected, I would like to close this issue.
Hi @MathieuDeprez
I’ll try tomorrow as you suggested with the other repo for Arduino 2.0.2 (that is the version that I’m currently using) and so you can close this issue.
Thanks for your support
I have tried to figure out what you changed to make it work so I can apply same in 2.0.2. However I can't figure it out. Seems you have a few changes in the out_01.zip that I can't figure out.
It will be most useful to be able to use the dump to flash with 2.0.2. Any direction will be much appreciated.