I have a core dump and elf file but espcoredump.py fails when using esp32_rom.elf (from https://dl.espressif.com/dl/esp32_rom.elf):
Code: Select all
paul@gfi:~/Downloads$ espcoredump.py info_corefile -c core1629 -t b64 -r esp32_rom.elf svp2.elf
espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================
Traceback (most recent call last):
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 295, in <module>
info_corefile()
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 122, in info_corefile
rom_elf, rom_sym_cmd = load_aux_elf(args.rom_elf)
File "/home/paul/esp/esp-idf/components/espcoredump/espcoredump.py", line 44, in load_aux_elf
elf = ElfFile(elf_path)
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 125, in __init__
self.read_elf(elf_path)
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 155, in read_elf
sec.sh.sh_flags) for sec in self._model.sections]
File "/home/paul/esp/esp-idf/components/espcoredump/corefile/elf.py", line 155, in <listcomp>
sec.sh.sh_flags) for sec in self._model.sections]
KeyError: 1044
Cheers
Paul