v4.4.2 Coredump报错

kongshui
Posts: 13
Joined: Tue May 16, 2023 11:49 am

v4.4.2 Coredump报错

Postby kongshui » Thu Aug 24, 2023 9:38 am

esp-idf 版本 : v4.4.2
示例:bluetooth/esp_ble_mesh/aligenie_demo

idf.py menuconfig 关于Coredump配置如下
www.png
www.png (20.28 KiB) Viewed 1844 times
配置好后执行烧录 idf.py -p /dev/ttyUSB0 erase_flash flash monitor
烧录成功执行 espcoredump.py -p /dev/ttyUSB0 dbg_corefile build/aligenie_demo.elf
报错如下:

Code: Select all

espcoredump.py v0.4-dev
INFO: Invoke parttool to read image.
INFO: esptool.py v3.3.2-dev
Serial port /dev/ttyUSB0
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting...
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:8d:0b:b4:24
Stub is already running. No upload is necessary.
3072 (100 %)
3072 (100 %)
Read 3072 bytes at 0x8000 in 0.3 seconds (86.2 kbit/s)...
Hard resetting via RTS pin...
esptool.py v3.3.2-dev
Serial port /dev/ttyUSB0
Connecting...
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting.....
Detecting chip type... ESP32
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 08:3a:8d:0b:b4:24
Uploading stub...
Running stub...
Stub running...
65536 (100 %)
65536 (100 %)
Read 65536 bytes at 0x3d0000 in 5.9 seconds (88.5 kbit/s)...
Hard resetting via RTS pin...
Running /home/jyb/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/jyb/esp/ayla_esp/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 read_flash 32768 3072 /tmp/tmp207ozkg3...
Running /home/jyb/.espressif/python_env/idf4.4_py3.8_env/bin/python /home/jyb/esp/ayla_esp/components/esptool_py/esptool/esptool.py --port /dev/ttyUSB0 read_flash 3997696 65536 /tmp/tmpsw1n2sfc...
Read partition 'coredump' contents from device at offset 0x3d0000 to file '/tmp/tmpsw1n2sfc'

Traceback (most recent call last):
  File "/home/jyb/esp/ayla_esp/components/espcoredump/espcoredump.py", line 352, in <module>
    temp_core_files = dbg_corefile()
  File "/home/jyb/esp/ayla_esp/components/espcoredump/espcoredump.py", line 125, in dbg_corefile
    core_elf_path, target, temp_files = get_core_dump_elf(e_machine=exe_elf.e_machine)
  File "/home/jyb/esp/ayla_esp/components/espcoredump/espcoredump.py", line 65, in get_core_dump_elf
    loader = ESPCoreDumpFlashLoader(args.off, args.chip, port=args.port, baud=args.baud)
  File "/home/jyb/esp/ayla_esp/components/espcoredump/corefile/loader.py", line 439, in __init__
    self.target = self._load_core_src()
  File "/home/jyb/esp/ayla_esp/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 "0xffff" is not supported!

ESP_Penguin_Helper
Posts: 156
Joined: Tue Jul 11, 2023 6:55 am

Re: v4.4.2 Coredump报错

Postby ESP_Penguin_Helper » Mon Sep 04, 2023 2:59 am

当 flash 被 擦除后,里面的内容会全为 0xf。可能 0xffff 代表你的 coredump 分区为空。请问你的程序是否出现崩溃,在崩溃时才会将相关信息存入 flash 中的 coredump 分区。

Who is online

Users browsing this forum: No registered users and 151 guests