MathieuDeprez / ESP32_CoreDump_Arduino_1.0.6

14 stars 0 forks source link

Can't make it work with Arduino 2.0.2 #4

Closed toml2 closed 2 years ago

toml2 commented 2 years ago

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.

MathieuDeprez commented 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?

toml2 commented 2 years ago

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

MathieuDeprez commented 2 years ago

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 ^^

toml2 commented 2 years ago

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)

image

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.

MathieuDeprez commented 2 years ago

@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.

toml2 commented 2 years ago

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?

Massimiliano-solutiontech commented 2 years ago

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

MathieuDeprez commented 2 years ago

@toml2 ,

I updated the GitHub repo with the BluetoothClassic functionnality.

Hi @MassimilianoMontagni98 ,

I managed to decode my coredump, here is the output :

CoreDump

``` 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 lbeg 0x400014fd 1073747197 lend 0x4000150d 1073747213 lcount 0xffffffff 4294967295 sar 0x1e 30 ps 0x60320 394016 threadptr br scompare1 acclo acchi m0 m1 m2 m3 expstate f64r_lo f64r_hi f64s fcr fsr a0 0x800d5a8c -2146608500 a1 0x3ffce350 1073537872 a2 0x3ffc3e1c 1073495580 a3 0x1 1 a4 0x60021 393249 a5 0x60023 393251 a6 0x1 1 a7 0x60a23 395811 a8 0x0 0 a9 0x3ffce330 1073537840 a10 0xc 12 a11 0xa 10 a12 0x4 4 a13 0x3 3 a14 0x1 1 a15 0x1 1 ==================== CURRENT THREAD STACK ===================== #0 0x400d28a1 in loop () at src/main.cpp:35 #1 0x400d5a8c in loopTask (pvParameters=0x0) at /home/mathieu/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50 #2 0x400942c4 in vPortTaskWrapper (pxCode=0x400d5a74 , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ======================== THREADS INFO ========================= Id Target Id Frame * 1 process 1073538072 0x400d28a1 in loop () at src/main.cpp:35 2 process 1073466376 0x401694da in esp_pm_impl_waiti () at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183 3 process 1073468264 0x401694da in esp_pm_impl_waiti () at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183 4 process 1073463412 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 5 process 1073455228 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 6 process 1073456604 0x40082f34 in esp_crosscore_int_send_yield (core_id=1) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 7 process 1073563976 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 8 process 1073568912 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 9 process 1073575708 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 10 process 1073461052 0x4000bff0 in ?? () 11 process 1073558828 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 ==================== THREAD 1 (TCB: 0x3ffce418, name: 'loopTask') ===================== #0 0x400d28a1 in loop () at src/main.cpp:35 #1 0x400d5a8c in loopTask (pvParameters=0x0) at /home/mathieu/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50 #2 0x400942c4 in vPortTaskWrapper (pxCode=0x400d5a74 , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 2 (TCB: 0x3ffbcc08, name: 'IDLE') ===================== #0 0x401694da in esp_pm_impl_waiti () at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183 #1 0x400dfa85 in esp_vApplicationIdleHook () at /home/mathieu/esp/esp-idf/components/esp_system/freertos_hooks.c:63 #2 0x400928c8 in prvIdleTask (pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/tasks.c:3954 #3 0x400942c4 in vPortTaskWrapper (pxCode=0x400928bc , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 3 (TCB: 0x3ffbd368, name: 'IDLE') ===================== #0 0x401694da in esp_pm_impl_waiti () at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:183 #1 0x400dfa85 in esp_vApplicationIdleHook () at /home/mathieu/esp/esp-idf/components/esp_system/freertos_hooks.c:63 #2 0x400928c8 in prvIdleTask (pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/tasks.c:3954 #3 0x400942c4 in vPortTaskWrapper (pxCode=0x400928bc , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 4 (TCB: 0x3ffbc074, name: 'spp_tx') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x40092046 in xQueueReceive (xQueue=0x3ffbbf44, pvBuffer=0x3ffcf4c0, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x400d2d39 in _spp_tx_task (arg=) at /home/mathieu/.platformio/packages/framework-arduinoespressif32/libraries/BluetoothSerial/src/BluetoothSerial.cpp:198 #3 0x400942c4 in vPortTaskWrapper (pxCode=0x400d2d20 <_spp_tx_task(void*)>, pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 5 (TCB: 0x3ffba07c, name: 'ipc0') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x400921dd in xQueueSemaphoreTake (xQueue=0x3ffb7a6c, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x4008bcb3 in ipc_task (arg=0x0) at /home/mathieu/esp/esp-idf/components/esp_ipc/src/esp_ipc.c:59 #3 0x400942c4 in vPortTaskWrapper (pxCode=0x4008bc84 , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 6 (TCB: 0x3ffba5dc, name: 'ipc1') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=1) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x400921dd in xQueueSemaphoreTake (xQueue=0x3ffb7f78, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x4008bcb3 in ipc_task (arg=0x1) at /home/mathieu/esp/esp-idf/components/esp_ipc/src/esp_ipc.c:59 #3 0x400942c4 in vPortTaskWrapper (pxCode=0x4008bc84 , pvParameters=0x1) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 7 (TCB: 0x3ffd4948, name: 'BTC_TASK') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x400921dd in xQueueSemaphoreTake (xQueue=0x3ffd3a3c, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x40116514 in osi_sem_take (sem=0x3ffd37c0, timeout=4294967295) at /home/mathieu/esp/esp-idf/components/bt/common/osi/semaphore.c:60 #3 0x401161e6 in osi_thread_run (arg=) at /home/mathieu/esp/esp-idf/components/bt/common/osi/thread.c:59 #4 0x400942c4 in vPortTaskWrapper (pxCode=0x401161d4 , pvParameters=0x3ffce240) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 8 (TCB: 0x3ffd5c90, name: 'hciT') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x400921dd in xQueueSemaphoreTake (xQueue=0x3ffd5184, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x40116514 in osi_sem_take (sem=0x3ffd4ef8, timeout=4294967295) at /home/mathieu/esp/esp-idf/components/bt/common/osi/semaphore.c:60 #3 0x401161e6 in osi_thread_run (arg=) at /home/mathieu/esp/esp-idf/components/bt/common/osi/thread.c:59 #4 0x400942c4 in vPortTaskWrapper (pxCode=0x401161d4 , pvParameters=0x3ffd4790) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 9 (TCB: 0x3ffd771c, name: 'BTU_TASK') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x400921dd in xQueueSemaphoreTake (xQueue=0x3ffd6410, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x40116514 in osi_sem_take (sem=0x3ffd62bc, timeout=4294967295) at /home/mathieu/esp/esp-idf/components/bt/common/osi/semaphore.c:60 #3 0x401161e6 in osi_thread_run (arg=) at /home/mathieu/esp/esp-idf/components/bt/common/osi/thread.c:59 #4 0x400942c4 in vPortTaskWrapper (pxCode=0x401161d4 , pvParameters=0x3ffd4790) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 10 (TCB: 0x3ffbb73c, name: 'esp_timer') ===================== #0 0x4000bff0 in ?? () #1 0x4009451d in vPortClearInterruptMaskFromISR (prev_level=) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:546 #2 vPortExitCritical (mux=) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:307 #3 0x40093eba in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/freertos/tasks.c:5365 #4 0x400e3cb7 in timer_task (arg=0x0) at /home/mathieu/esp/esp-idf/components/esp_timer/src/esp_timer.c:392 #5 0x400942c4 in vPortTaskWrapper (pxCode=0x400e3ca8 , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ==================== THREAD 11 (TCB: 0x3ffd352c, name: 'btController') ===================== #0 0x40082f34 in esp_crosscore_int_send_yield (core_id=0) at /home/mathieu/esp/esp-idf/components/esp_system/crosscore_int.c:144 #1 0x40092046 in xQueueReceive (xQueue=0x3ffbca74, pvBuffer=0x3ffd3470, xTicksToWait=) at /home/mathieu/esp/esp-idf/components/hal/esp32/include/hal/cpu_ll.h:39 #2 0x400849da in queue_recv_hlevel_wrapper (queue=0x3ffbcad4, item=0x3ffd3470, block_time_ms=4294967295) at /home/mathieu/esp/esp-idf/components/bt/controller/esp32/bt.c:955 #3 0x40138345 in btdm_controller_task () at /home/mathieu/.platformio/packages/framework-arduinoespressif32/libraries/BluetoothSerial/src/BluetoothSerial.cpp:1010 #4 0x400942c4 in vPortTaskWrapper (pxCode=0x4013832c , pvParameters=0x0) at /home/mathieu/esp/esp-idf/components/freertos/port/xtensa/port.c:130 ======================= ALL MEMORY REGIONS ======================== Name Address Size Attrs .rtc.text 0x400c0000 0x0 RW .rtc.dummy 0x3ff80000 0x0 RW .rtc.force_fast 0x3ff80000 0x0 RW .rtc.data 0x50000000 0x10 RW A .rtc_noinit 0x50000010 0x0 RW .rtc.force_slow 0x50000010 0x0 RW .iram0.vectors 0x40080000 0x403 R XA .iram0.text 0x40080404 0x17fcb R XA .dram0.data 0x3ffbdb60 0x5f4c RW A .ext_ram_noinit 0x3f800000 0x0 RW .noinit 0x3ffc3aac 0x0 RW .ext_ram.bss 0x3f800000 0x0 RW .flash.appdesc 0x3f400020 0x100 R A .flash.rodata 0x3f400120 0x28e5c RW A .flash.rodata_noload 0x3f428f7c 0x0 RW .flash.text 0x400d0020 0x9a097 R XA .phyiram.20 0x4016a0b8 0x61 R XA .phyiram.18 0x4016a11c 0x10e R XA .phyiram.19 0x4016a22c 0x90 R XA .phyiram.17 0x4016a2bc 0x2d7 R XA .phyiram.0 0x4016a594 0x2b R XA .phyiram.1 0x4016a5c0 0x7d R XA .phyiram.2 0x4016a640 0x21e R XA .phyiram.3 0x4016a860 0xab R XA .phyiram.4 0x4016a90c 0xff R XA .phyiram.6 0x4016aa0c 0x83 R XA .phyiram.7 0x4016aa90 0x1ff R XA .phyiram.8 0x4016ac90 0x177 R XA .phyiram.9 0x4016ae08 0x8e R XA .phyiram.13 0x4016ae98 0xba R XA .phyiram.12 0x4016af54 0xeb R XA .phyiram.14 0x4016b040 0x1cb R XA .phyiram.16 0x4016b20c 0x72 R XA .phyiram.11 0x4016b280 0x78 R XA .phyiram.15 0x4016b2f8 0xba R XA .phyiram.21 0x4016b3b4 0x4a R XA .phyiram.22 0x4016b400 0x31 R XA .phyiram.23 0x4016b434 0x103 R XA .phyiram.24 0x4016b538 0x87 R XA .iram0.data 0x400983d0 0x0 RW .iram0.bss 0x400983d0 0x0 RW .dram0.heap_start 0x3ffcbc50 0x0 RW .coredump.tasks.data 0x3ffce418 0x158 RW .coredump.tasks.data 0x3ffce290 0x180 RW .coredump.tasks.data 0x3ffbcc08 0x158 RW .coredump.tasks.data 0x3ffbd1c0 0x1a0 RW .coredump.tasks.data 0x3ffbd368 0x158 RW .coredump.tasks.data 0x3ffbd920 0x1a0 RW .coredump.tasks.data 0x3ffbc074 0x158 RW .coredump.tasks.data 0x3ffcf3a0 0x1d0 RW .coredump.tasks.data 0x3ffba07c 0x158 RW .coredump.tasks.data 0x3ffb7d00 0x1c0 RW .coredump.tasks.data 0x3ffba5dc 0x158 RW .coredump.tasks.data 0x3ffba410 0x1c4 RW .coredump.tasks.data 0x3ffd4948 0x158 RW .coredump.tasks.data 0x3ffd4760 0x1e0 RW .coredump.tasks.data 0x3ffd5c90 0x158 RW .coredump.tasks.data 0x3ffd5aa0 0x1e8 RW .coredump.tasks.data 0x3ffd771c 0x158 RW .coredump.tasks.data 0x3ffd7530 0x1e4 RW .coredump.tasks.data 0x3ffbb73c 0x158 RW .coredump.tasks.data 0x3ffbb580 0x1b4 RW .coredump.tasks.data 0x3ffd352c 0x158 RW .coredump.tasks.data 0x3ffd3330 0x1f4 RW ===================== ESP32 CORE DUMP END ===================== =============================================================== Done! ```

Did you installed the good "esp-idf" and "xtensa-esp32-elf" version ?

toml2 commented 2 years ago

Thanks, I am getting it to dump to the flash now :)

Next challenge is getting it decoded.

Massimiliano-solutiontech commented 2 years ago

@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

toml2 commented 2 years ago

At run time I get this version for the IDF IDF VERSION: v4.4-beta1

Massimiliano-solutiontech commented 2 years ago

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

toml2 commented 2 years ago

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!

Massimiliano-solutiontech commented 2 years ago

@MathieuDeprez May I provide you my elf file and the base64 coredump in order to try if you can decode it?

toml2 commented 2 years ago

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 image .

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

image

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\\documents\platformio\projects\.pio\build\esp32dev\firmware.elf

(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)

MathieuDeprez commented 2 years ago

@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:

My entire hex String

``` e4400000000100000000000000000000000000007f454c4601010100000000000000000004005e00010000000000000034000000000000000000000034002000180028000000000004000000340300000000000000000000201a0000201a0000060000000000000001000000541d000018e4fc3f18e4fc3f5801000058010000060000000000000001000000ac1e000090e2fc3f90e2fc3f80010000800100000600000000000000010000002c20000008ccfb3f08ccfb3f580100005801000006000000000000000100000084210000c0d1fb3fc0d1fb3fa0010000a00100000600000000000000010000002423000068d3fb3f68d3fb3f58010000580100000600000000000000010000007c24000020d9fb3f20d9fb3fa0010000a00100000600000000000000010000001c260000ccc0fb3fccc0fb3f580100005801000006000000000000000100000074270000a0f3fc3fa0f3fc3fd0010000d0010000060000000000000001000000442900007ca0fb3f7ca0fb3f58010000580100000600000000000000010000009c2a0000e07cfb3fe07cfb3fe0010000e00100000600000000000000010000007c2c0000dca5fb3fdca5fb3f5801000058010000060000000000000001000000d42d000010a4fb3f10a4fb3fc4010000c4010000060000000000000001000000982f00004849fd3f4849fd3f5801000058010000060000000000000001000000f03000006047fd3f6047fd3fe0010000e0010000060000000000000001000000d0320000905cfd3f905cfd3f580100005801000006000000000000000100000028340000a05afd3fa05afd3fe8010000e8010000060000000000000001000000103600001c77fd3f1c77fd3f5801000058010000060000000000000001000000683700003075fd3f3075fd3fe4010000e40100000600000000000000010000004c3900003cb7fb3f3cb7fb3f5801000058010000060000000000000001000000a43a000080b5fb3f80b5fb3fb4010000b4010000060000000000000001000000583c00002c35fd3f2c35fd3f5801000058010000060000000000000001000000b03d00003033fd3f3033fd3ff4010000f4010000060000000000000004000000a43f0000000000000000000014010000140100000600000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000018e4fc3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a1280d4020030600fd1400400d150040ffffffff1e000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000008c5a0d8050e3fc3f1c3efc3f01000000210006002300060001000000230a06000000000030e3fc3f0c0000000a0000000400000080e1fc3f010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000008ccfb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000da941640200106000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085fa0d8080d2fb3f00000000010000000100000001000080e000f03f01000000b2f50d8050d2fb3f00000000481d00402006060023060600010000002c24084000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f52450000000000000000000000000000000000000000000000000000000068d3fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000da941640200306000000000000000000000000001e0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000085fa0d80e0d9fb3f000000000000000001000000010000800300000023000600b2f50d80b0d9fb3f00000000230806002008060023080600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000ccc0fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f08402000060000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004620098060f4fc3f00000000ffffffffe8bffb3f40eafb3f0300000023000600342f088040f4fc3fdc00f03f01000000a0dcfb3f23000600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000007ca0fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000232f0840200406000000000000000000000000000300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0880a07dfb3fdc00f03f01000000a0dcfb3f2304060001000000040000000a2f0880807dfb3fa046fc3f000000002304060023040600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000dca5fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200b06000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980d0a4fb3f01000000ffffffffc47ffb3f5049fd3f010000001c00f43f342f0880b0a4fb3fe000f03f01000000a0dcfb3f230b0600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000004849fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200306002d1400403a140040f8ffffff1900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd2109802048fd3f00000000ffffffff883afd3f000000000000000001000000342f08800048fd3fdc00f03f01000000a0dcfb3f2303060001000000000000ff0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f524500000000000000000000000000000000000000000000000000000000905cfd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff2000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980605bfd3f00000000ffffffffd051fd3f000000000000000001000000342f0880405bfd3fdc00f03f01000000a0dcfb3f230f0600010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000001c77fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff0400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dd210980f075fd3f00000000ffffffff5c64fd3f000000000000000001000000342f0880d075fd3fdc00f03f01000000a0dcfb3f230f060001000000ff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000003cb7fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000f0bf0040200f060000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001d45098040b6fb3f00000000230f0600200f0600230f060001000000000000000a2f088010b6fb3fa846fc3f230f0600200f0600230f0600010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000004c02000001000000434f5245000000000000000000000000000000000000000000000000000000002c35fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000342f0840200f0600e0c20040f6c20040ffffffff150000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000046200980f033fd3f00000000ffffffffc0cafb3f000000000000000001000000342f0880d033fd3fdc00f03f01000000a0dcfb3f230f060001000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000050e2fc3fb0e3fc3f29350000a447fc3fa447fc3f18e4fc3f9c47fc3f18000000284bfd3f284bfd3f18e4fc3f000000000100000014c4fc3f6c6f6f705461736b00286bcabcd637000100000010e4fc3f0100000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fc3fefbeaddea1280d40300306008c5a0d8050e3fc3f1c3efc3f01000000210006002300060001000000230a06000000000030e3fc3f0c0000000a0000000400000080e1fc3f01000000010000001e0000000600000000000000fd1400400d150040ffffffff0400000080e1fc3ff44008404455fa3f000000000000000000000000ffff3fb3000000000000000000000000000000000000000000000000000000000000000080e1fc3f0100000001000000c442098070e3fc3f0000000000000000210006002300060001000000230a06000000000090e3fc3f745a0d400000000023000600a447fc3faccafb3f0000000000000000b0e3fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000bce3fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0d1fb3f00d3fb3f253062cd70d3fb3f9047fc3f08ccfb3f8847fc3f190000008cac8a7b4ef49c8008ccfb3f000000000000000064cdfb3f49444c450034bb0f688b88fbca20da000000000060d3fb3f0000000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002fb3f58410840da9416403001060085fa0d8080d2fb3f00000000010000000100000001000080e000f03f01000000b2f50d8050d2fb3f00000000481d00402006060023060600010000002c2408401e000000ffff0000000000000000000000000000000000005c43084023060600600e09409444f93f000000000000000000000000ffff3fb3000000000000000000000000000000000000000000000000000000002006060023060600010000002c240840c8280980a0d2fb3f08000000000000000100000001000080e000f03f01000000c4420980c0d2fb3f00000000000000000100000023000600010000002301060000000000e0d2fb3fbc28094000000000230006009047fc3f68d3fb3f000000000000000000d3fb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cd3fb3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020d9fb3f60dafb3f8ae1ceff9047fc3f10ccfb3f68d3fb3f8847fc3f190000008a0abb55441d80b368d3fb3f0000000000000000c4d4fb3f49444c4500826ecd2a128697f30e0d0001000000c0dafb3f0000000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002fb3f58410840da9416403003060085fa0d80e0d9fb3f000000000000000001000000010000800300000023000600b2f50d80b0d9fb3f0000000023080600200806002308060001000000000000001e000000ffff0000000000000000000000000000000000005c43084023080600600e0940f44bf93f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000020080600230806000100000000000000c828098000dafb3f080000000100000001000000010000800300000023000600c442098020dafb3f0000000000000000010000002300060001000000000000000000000040dafb3fbc28094000000000230006009047fc3f08ccfb3f000000000000000060dafb3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006cdafb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a0f3fc3f10f5fc3fa5a5a5a584a0fb3f0c47fc3fccc0fb3f0447fc3f0f000000c8bffb3fc8bffb3fccc0fb3fc0bffb3f0a00000074e5fc3f7370705f747800a5a5a5a5a5a5a5a5000000000070f5fc3f0a00000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d00400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840342f0840300006004620098060f4fc3f00000000ffffffffe8bffb3f40eafb3f0300000023000600342f088040f4fc3fdc00f03f01000000a0dcfb3f23000600010000000000000000000000ffff0000000000000000000000000000000000005c43084023000600600e0940a466fa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5a5392d0d8080f4fc3f9cbffb3fc0f4fc3f10f5fc3f000000000000000000000000c4420980c0f4fc3f000000000000000000000000230c00000000000000000000ffffffff000000000000000000000000e8bffb3f01000000010000000000000000000000f0f4fc3f202d0d400000000000000000000000000000000000000000230006005848fc3fccc0fb3f000000000000000010f5fc3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001cf5fc3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e07cfb3f607efb3fcec1700fe4a5fb3fd4c0fb3f7ca0fb3f0447fc3f01000000987afb3f987afb3f7ca0fb3f907afb3f18000000c47afb3f697063300089aaecffe34f950fbaf70000000000c07efb3f1800000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840232f084030040600342f0880a07dfb3fdc00f03f01000000a0dcfb3f2304060001000000040000000a2f0880807dfb3fa046fc3f000000002304060023040600010000000100000003000000ffff0000000000000000000000000000000000005c43084023040600600e0940f4eff83f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000020e4fc3f01000000230f060003000000dd210980c07dfb3f00000000ffffffff000000005c43084020e4fc3f600e0940b3bc0880e07dfb3f6c7afb3fb87afb3fb87afb3f20e4fc3f01000000230f0600c4420980207efb3f000000000000000000000000380c00000000000000000000ffffffff207efb3f000000002c2408400100000001000000000000000100000000000000407efb3f84bc084000000000000000007049fc3f7ca0fb3f0100000000000000607efb3f000000000000000000000000000000000000000000000000bb9c1680b03bfe3ffc46fc3f0000000000000000000000006c7efb3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010a4fb3f70a5fb3f7135ae1c5049fd3f84a0fb3fdca5fb3f0447fc3f01000000a47ffb3fa47ffb3fdca5fb3f9c7ffb3f18000000d8a1fb3f69706331009b9fc1f399b03dd899070001000000d4a5fb3f1800000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fb3f58410840342f0840300b0600dd210980d0a4fb3f01000000ffffffffc47ffb3f5049fd3f010000001c00f43f342f0880b0a4fb3fe000f03f01000000a0dcfb3f230b0600010000000100000000000000ffff0000000000000000000000000000000000005c430840230b0600600e09400417f93f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000ffff3fb3000000000000000000000000b3bc0880f0a4fb3f787ffb3fc47ffb3f4c000084230b06000100000001000000c442098030a5fb3f010000000000000000000000d40d0000010000001c00f43fffffffff30a5fb3f010000002c240840010000000100000000000000010000000000000050a5fb3f84bc084001000000010000007049fc3fdca5fb3f000000000000000070a5fb3f0000000000000000000000000000000000000000000000005a300880607dfe3f803e0000c0e0490100000000000000007ca5fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006047fd3fe048fd3fb0f2ab0f985cfd3fe4a5fb3f4849fd3f0447fc3f06000000683afd3f683afd3f4849fd3f603afd3f13000000443bfd3f4254435f5441534b00b8efbff377d300000000004049fd3f1300000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f084030030600dd2109802048fd3f00000000ffffffff883afd3f000000000000000001000000342f08800048fd3fdc00f03f01000000a0dcfb3f2303060001000000000000ff19000000ffff0000000000002d1400403a140040f8ffffff5c43084023030600600e094074bafa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000602109802048fd3fa046fc3f303afd3f146511804048fd3f3c3afd3f883afd3f00000000000000000000000001000000e66111808048fd3fc037fd3fffffffff00000000200e00003493fd3fd48cfd3fffffffff8048fd3fcc37fd3fe48cfd3f01000000010000000000000001000000c4420980a048fd3f0200000002000000d837fd3f23000600010000002304060000000000c048fd3fd461114040e2fc3fb037fd3f0c49fc3f4849fd3f0000000000000000e048fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ec48fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a05afd3f205cfd3fcaad796b2477fd3f5049fd3f905cfd3f0447fc3f03000000b051fd3fb051fd3f905cfd3fa851fd3f160000008c52fd3f68636954009ed9b5aac134ddc39e180000000000885cfd3f1600000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f0600dd210980605bfd3f00000000ffffffffd051fd3f000000000000000001000000342f0880405bfd3fdc00f03f01000000a0dcfb3f230f0600010000000100000020000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e0940b4cdfa3f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000a5571180805bfd3f5452fd3f0000000014651180805bfd3f8451fd3fd051fd3f040000000200000062b4413f01000000e6611180c05bfd3ff84efd3fffffffff000000002b0e00005c00000001000000ffffffffc05bfd3f00000000188bfd3f01000000010000000000000001000000c4420980e05bfd3f02000000020000005850fd3f23000600010000002309060000000000005cfd3fd46111409047fd3fe84efd3f4849fc3f905cfd3f0000000000000000205cfd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002c5cfd3f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003075fd3fb076fd3fbfd1168544b7fb3f985cfd3f1c77fd3f0447fc3f050000003c64fd3f3c64fd3f1c77fd3f3464fd3f140000001865fd3f4254555f5441534b000cc64485893500000000001477fd3f1400000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f0600dd210980f075fd3f00000000ffffffff5c64fd3f000000000000000001000000342f0880d075fd3fdc00f03f01000000a0dcfb3f230f060001000000ff00000004000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e094044e8fa3f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000066650980f075fd3fa046fc3f00000010146511801076fd3f1064fd3f5c64fd3f000000006063fd3f64000000ff000000e66111805076fd3fbc62fd3fffffffff000000002c0e00006300000001000000ffffffff5076fd3f248dfd3ff4950f4001000000010000000000000001000000c44209807076fd3f010000000100000000170000230006000100000023020600000000009076fd3fd46111409047fd3fac62fd3f2049fc3f1c77fd3f0000000000000000b076fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000bc76fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080b5fb3fd0b6fb3f713af0603435fd3f2477fd3f3cb7fb3f0447fc3f030000009ae9d85c345161c93cb7fb3f000000001600000038a7fb3f6573705f74696d657200d03bdc563c000000000034b7fb3f1600000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000100fb3f58410840f0bf0040300f06001d45098040b6fb3f00000000230f0600200f0600230f060001000000000000000a2f088010b6fb3fa846fc3f230f0600200f0600230f0600010000000000000010000000ffff0000000000000000000000000000000000005c430840230f0600600e09406428f93f000000000000000000000000ffff3fb300000000000000000000000000000000000000000000000000000000d0b6fb3f000000000000000000000000ba3e098050b6fb3fa046fc3f00000000b73c0e8070b6fb3f00000000010000006b2d000078e2fb3f7c45403f903bfe3fc442098090b6fb3f000000000000000008f3fb3f000000001e1edef0f908b20000000000b0b6fb3fa83c0e4000000000230006004849fc3f3cb7fb3f0000000000000000d0b6fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000dcb6fb3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003033fd3fc034fd3f7cbc25b90c47fc3f44b7fb3f2c35fd3f0447fc3f02000000a0cafb3fa0cafb3f2c35fd3f98cafb3f170000002825fd3f6274436f6e74726f6c6c6572004a8100000000002435fd3f1700000000000000000000000000000000000000f46bfb3f5c6cfb3fc46cfb3f000000000000000001000000000000000000000000000000481d004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000fd3f58410840342f0840300f060046200980f033fd3f00000000ffffffffc0cafb3f000000000000000001000000342f0880d033fd3fdc00f03f01000000a0dcfb3f230f0600010000000100000015000000ffff000000000000e0c20040f6c20040ffffffff5c430840230f0600600e094054a6fa3f000000000000000000000000ffff3fb30000000000000000000000000000000000000000000000000000000000000000f033fd3f200f060000000000da4908801034fd3f74cafb3f7034fd3fd436fd3f000000000000000001000000458313805034fd3fd4cafb3f7034fd3f000000001b3400000000000001000000ffffffff5034fd3f48450e4088b1fc3fc0cafb3f010000000100000000000000c44209807034fd3f606dfc3f02000000ffffffff2300060001000000230b060000000000a034fd3f2c8313400000000000000000000000000000000000000000c8490840506efc3f000000000000000000000000c034fd3f000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc34fd3f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000480000004a2000004553505f434f52455f44554d505f494e464f00000001000030303030303030303030303030303030000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c00000094000000a502000045585452415f494e464f000018e4fc3fe800000006000000ee00000000000000c200000000000000c300000000000000c400000000000000c500000000000000c600000000000000b10000000ff00d40b200000000000000b300000000000000b400000000000000b500000000000000b60000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000067bff30330303030303030300000000000000000000000000000000000000000 ```

My firmware.elf

toml2 commented 2 years ago

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 temp_core_files = info_corefile() File "D:\Esp32\v4.4-beta1\esp-idf-v4.4-beta1\components\espcoredump\espcoredump.py", line 174, in info_corefile gdb = EspGDB(gdb_tool, [rom_sym_cmd], core_elf_path, args.prog, timeout_sec=args.gdb_timeout_sec) File "D:\Esp32\v4.4-beta1\esp-idf-v4.4-beta1\components\espcoredump\corefile\gdb.py", line 43, in init self.p = GdbController(gdb_path=gdb_path, gdb_args=gdb_args) TypeError: init() got an unexpected keyword argument 'gdb_path' Exception ignored in: <function EspGDB.del at 0x000002F903784940> Traceback (most recent call last): File "D:\Esp32\v4.4-beta1\esp-idf-v4.4-beta1\components\espcoredump\corefile\gdb.py", line 53, in del self.p.exit() AttributeError: 'EspGDB' object has no attribute 'p'

MathieuDeprez commented 2 years ago

@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  
Massimiliano-solutiontech commented 2 years ago

@MathieuDeprez

Here my files

firmware.elf

Base64 String 7BYAAAEAAAAHAAAAZAEAAFiA+z8wHvs/VCD7P2Ad+z/wH/s/wuFLlrAN/D+wDfw/WID7P6gN/D8YAAAAFH77PxR++z9YgPs/AAAAAAEAAABYAPs/bG9vcFRhc2sA0G5dpxBhAAEAAABUIPs/AAAAACAFBgABAAAAAAAAAEzb+z8EYw5AAAAAAKxl+z8UZvs/fGb7PwAAAAAAAAAAAQAAAAAAAABIf0A/AAAAAEgdAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAApcueMYEAgNtQCEAwDQYAAFUIgPAe+z8EAASALwAAAAwAAAD/////AAAAAP7///8AAAAA0B77PwAAAAABAAAALx77PzEAAAAAAAAAMh77PwQAAAAdAAAAAAAAAGzEAEB3xABAAAAAAC8e+z8xAAAAqCsIQDhX+j8AAAAAAAAAAAAAAAD//z+zAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAgR77PwAAAAAqfg6AEB/7PxyG+z/kHvs/CAAAAP////8AAAAA/////3F+DoAwH/s/yFQIQAAAAAAAAAAAOAP8P/BkDkAAAAAA8nQOgFAf+z8AAAAABQAAAADV1Ly8qrG4AQAAAAArK0MADw2AcB/7P+SF+z+sAUA/YAAAAASG+z8AAgAAwB77P/QhDYCQH/s/A5BshFwD/D+0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ABgBQawiAUHj7PwAAAACID/w/iA/8PwEAAAAgAAYAAAAAAGAdCIAwePs/3ADwPwEAAADg3Ps/AQAAACMABgAAAAAAAAAAAKWlpaWlpaWlAAAAAAAAAAAAAAAADC4IQAEAAABcjwhAOLD6PwAAAAAAAAAAAAAAAP//P7MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADCwIQABtCEAwAAUAAAAAAP88DoBwePs/nP/6PwAAAAAAAAAA7DwOQAAAAAAAAAAACG0IgLB4+z8AAAAAAAAAAAAAAAAAAAAAAAAAAP////8AAAAAAAAAAAAAAAAAAAAA6P/6PwAAAAABAAAAIwAGAAAAAADQePs/7DwOQAAAAAAjAAYAbHn7PwAAAAABAAAAAAAAAPB4+z8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD8ePs/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAtYqjAAAAAAhtCICwePs/AAAAAAAAAAA=
MathieuDeprez commented 2 years ago

@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?

The command return

``` 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 temp_core_files = info_corefile() File "/home/mathieu/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 "/home/mathieu/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 "/home/mathieu/esp/esp-idf/components/espcoredump/corefile/loader.py", line 239, in create_corefile self._validate_dump_file() File "/home/mathieu/esp/esp-idf/components/espcoredump/corefile/loader.py", line 214, in _validate_dump_file self._crc_validate() File "/home/mathieu/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 "/home/mathieu/.local/lib/python3.7/site-packages/construct/core.py", line 336, in build self.build_stream(obj, stream, **contextkw) File "/home/mathieu/.local/lib/python3.7/site-packages/construct/core.py", line 348, in build_stream self._build(obj, stream, context, "(building)") File "/home/mathieu/.local/lib/python3.7/site-packages/construct/core.py", line 2001, in _build subobj = obj[sc.name] # raises KeyError KeyError: 'segs_num' ```

Massimiliano-solutiontech commented 2 years ago

I just opened my firmware.elf with an hex editor and I clearly see the 0x7F 0x45 0x4C 0x46 sequence

Schermata 2022-01-29 alle 16 53 49

Massimiliano-solutiontech commented 2 years ago

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
MathieuDeprez commented 2 years ago

@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.

Massimiliano-solutiontech commented 2 years ago

@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'
MathieuDeprez commented 2 years ago

@MassimilianoMontagni98 I think there is a confusion.

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.

MathieuDeprez commented 2 years ago

Hi @MassimilianoMontagni98

Did you found a solution for your problem? If everything is working as expected, I would like to close this issue.

Massimiliano-solutiontech commented 2 years ago

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