乐鑫技术交流
直播中

李华瑞

7年用户 923经验值
私信 关注
[问答]

ESP32-D0WDQ6芯片无法读取核心转储信息是怎么回事?

ESP-IDF v4.4.2
芯片是 ESP32-D0WDQ6
我正在尝试读取核心转储信息。
首先,我正在使用 esptool 读取 Flash
代码:
esptool.py --port /dev/ttyUSB0 read_flash 0x3ec000 0xE000 ./core.bin
然后我尝试使用以下方法提取信息:
代码:
espcoredump.py info_corefile --core ./core.bin --core-format raw build/httpsOTA_S_FE.elf
但脚本给我以下错误:
代码:
espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================
Traceback (most recent call last):
  File "/home/praveen/opt/esp/idf-4.4.2/esp-idf/components/espcoredump/espcoredump.py", line 350, in
    temp_core_files = info_corefile()
  File "/home/praveen/opt/esp/idf-4.4.2/esp-idf/components/espcoredump/espcoredump.py", line 170, in info_corefile
    gdb = EspGDB(gdb_tool, [rom_sym_cmd], core_elf_path, args.prog, timeout_sec=args.gdb_timeout_sec)
  File "/home/praveen/opt/esp/idf-4.4.2/esp-idf/components/espcoredump/corefile/gdb.py", line 45, in __init__
    self._gdbmi_run_cmd_get_responses(cmd='-data-list-register-values x pc',
  File "/home/praveen/opt/esp/idf-4.4.2/esp-idf/components/espcoredump/corefile/gdb.py", line 63, in _gdbmi_run_cmd_get_responses
    more_responses = self.p.get_gdb_response(timeout_sec=0, raise_error_on_timeout=False)
  File "/home/praveen/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/pygdbmi/gdbcontroller.py", line 269, in get_gdb_response
    self.verify_valid_gdb_subprocess()
  File "/home/praveen/.espressif/python_env/idf4.4_py3.10_env/lib/python3.10/site-packages/pygdbmi/gdbcontroller.py", line 175, in verify_valid_gdb_subprocess
    raise NoGdbProcessError(
pygdbmi.gdbcontroller.NoGdbProcessError: gdb process has already finished with return code: 127
我的最终目标是将此分区信息发送到我的服务器并在服务器上进行调试。我首先希望能够在我的主机上进行调试,以了解我如何在我的服务器上实现。

更多回帖

发帖
×
20
完善资料,
赚取积分