Code: Select all
espcoredump.py -p /dev/ttyUSB0 info_corefile build/8-channel.elf
espcoredump.py v0.4-dev
INFO: Invoke parttool to read image.
/home/willemmerson/.espressif/python_env/idf4.1_py3.7_env/bin/python: can't open file 'parttool.py': [Errno 2] No such file or directory
ERROR: parttool script execution failed with err 2
WARNING: System path is not set. Try to use predefined path.
Traceback (most recent call last):
File "/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py", line 346, in <module>
main()
File "/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py", line 339, in main
op(**common_args)
File "/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py", line 182, in _read_partition
target.read_partition(partition_id, output)
File "/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py", line 159, in read_partition
self._call_esptool(["read_flash", str(partition.offset), str(partition.size), output] + self.esptool_read_args)
File "/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py", line 132, in _call_esptool
subprocess.check_call(esptool_args, stdout=null_file, stderr=null_file)
File "/usr/lib64/python3.7/subprocess.py", line 363, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/home/willemmerson/.espressif/python_env/idf4.1_py3.7_env/bin/python', '/home/willemmerson/esp/esp-idf/components/esptool_py/esptool/esptool.py', '--port', '/dev/ttyUSB0', 'read_flash', '1114112', '65536', '/tmp/tmpx0t3ocqs']' returned non-zero exit status 2.
ERROR: parttool script execution failed with err 1
Traceback (most recent call last):
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1093, in _load_coredump
f = self.invoke_parttool(tool_path=tool_path)
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1033, in invoke_parttool
raise e
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1017, in invoke_parttool
et_out = subprocess.check_output(part_tool_args)
File "/usr/lib64/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/lib64/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/willemmerson/.espressif/python_env/idf4.1_py3.7_env/bin/python', 'parttool.py', '--port', '/dev/ttyUSB0', 'read_partition', '--partition-type', 'data', '--partition-subtype', 'coredump', '--output', '/tmp/tmpwvrhrlsc']' returned non-zero exit status 2.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1763, in <module>
main()
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1758, in main
operation_func(args)
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1500, in info_corefile
loader = ESPCoreDumpFlashLoader(args.off, port=args.port, baud=args.baud)
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 965, in __init__
self.fcore = self._load_coredump(off)
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1103, in _load_coredump
f = self.invoke_parttool(tool_path=tool_path)
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1033, in invoke_parttool
raise e
File "/home/willemmerson/esp/esp-idf/components/espcoredump/espcoredump.py", line 1017, in invoke_parttool
et_out = subprocess.check_output(part_tool_args)
File "/usr/lib64/python3.7/subprocess.py", line 411, in check_output
**kwargs).stdout
File "/usr/lib64/python3.7/subprocess.py", line 512, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/home/willemmerson/.espressif/python_env/idf4.1_py3.7_env/bin/python', '/home/willemmerson/esp/esp-idf/components/partition_table/parttool.py', '--port', '/dev/ttyUSB0', 'read_partition', '--partition-type', 'data', '--partition-subtype', 'coredump', '--output', '/tmp/tmpx0t3ocqs']' returned non-zero exit status 1.
I am using the chip on a custom board and it is slightly temperamental regarding the bootloader however I am able to flash it reliably.
ESP-IDF: v4.1-dev-2196-g64654c044
Detecting chip type... ESP32
Chip is ESP32D0WDQ5 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz