版本库:v5.0-rc1*
我按ESP--FAQ文档来使用coredump
https://docs.espressif.com/projects/esp ... 2-coredump
在执行espcoredump.py info_corefile -t elf -c coredump.bin C:\Users\15119\esp\Code008_ESPS32\build\Code008.elf时.
出现了以下问题:
- Traceback (most recent call last):
- File "C:\Users\15119\esp\esp-idf\components\espcoredump\espcoredump.py", line 77, in <module>
- main()
- File "C:\Users\15119\esp\esp-idf\components\espcoredump\espcoredump.py", line 62, in main
- temp_core_files = espcoredump.info_corefile()
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esp_coredump\coredump.py", line 398, in info_corefile
- self.core_elf = ESPCoreDumpElfFile(core_elf_path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esp_coredump\corefile\elf.py", line 309, in __init__
- super(ESPCoreDumpElfFile, self).__init__(elf_path, _e_type, _e_machine)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esp_coredump\corefile\elf.py", line 117, in __init__
- self.read_elf(elf_path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\esp_coredump\corefile\elf.py", line 128, in read_elf
- header_tables = ElfHeaderTables.parse(elf_bytes)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 288, in parse
- return self.parse_stream(io.BytesIO(data), **contextkw)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 300, in parse_stream
- return self._parsereport(stream, context, "(parsing)")
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2120, in _parse
- subobj = sc._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2653, in _parse
- return self.subcon._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2120, in _parse
- subobj = sc._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2653, in _parse
- return self.subcon._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2120, in _parse
- subobj = sc._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2653, in _parse
- return self.subcon._parsereport(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 312, in _parsereport
- obj = self._parse(stream, context, path)
- File "C:\Users\15119\.espressif\python_env\idf5.0_py3.8_env\lib\site-packages\construct\core.py", line 2728, in _parse
- raise ConstError(f"parsing expected {repr(self.value)} but parsed {repr(obj)}", path=path)
- construct.core.ConstError: Error in path (parsing) -> elf_header -> e_ident -> EI_MAG
- parsing expected b'\x7fELF' but parsed b'\xe4\x1c\x00\x00'
请问这个问题要如果解决?谢谢