This is what the environment reports at windows command prompt start:
Code: Select all
Setting PYTHONNOUSERSITE, was not set
Using Python in C:\exp\python_env\idf4.4_py3.11_env\Scripts\
Python 3.11.2
Using Git in C:\exp\tools\idf-git\2.39.2\cmd\
git version 2.39.2.windows.1
Setting IDF_PATH: C:\exp\frameworks\esp-idf-v4.4.6
Adding ESP-IDF tools to PATH...
C:\exp\tools\xtensa-esp-elf-gdb\11.2_20220823\xtensa-esp-elf-gdb\bin
C:\exp\tools\xtensa-esp32-elf\esp-2021r2-patch5-8.4.0\xtensa-esp32-elf\bin
C:\exp\tools\esp32ulp-elf\2.35_20220830\esp32ulp-elf\bin
C:\exp\tools\cmake\3.23.1\bin
C:\exp\tools\openocd-esp32\v0.12.0-esp32-20230419\openocd-esp32\bin
C:\exp\tools\ninja\1.10.2\
C:\exp\tools\idf-exe\1.0.3\
C:\exp\tools\ccache\4.3\ccache-4.3-windows-64
C:\exp\frameworks\esp-idf-v4.4.6\tools
Checking if Python packages are up to date...
Python requirements from C:\exp\frameworks\esp-idf-v4.4.6\requirements.txt are satisfied.
Done! You can now compile ESP-IDF projects.
Go to the project directory and run:
idf.py build
Code: Select all
C:\exp\myproj>python ..\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py --help
usage: espcoredump.py [-h] [--chip {auto,esp32,esp32s2,esp32s3,esp32c3}] [--port PORT] [--baud BAUD]
[--gdb-timeout-sec GDB_TIMEOUT_SEC]
{dbg_corefile,info_corefile} ...
espcoredump.py v0.4-dev - ESP32 Core Dump Utility
positional arguments:
{dbg_corefile,info_corefile}
dbg_corefile Starts GDB debugging session with specified corefile
info_corefile Print core dump info from file
options:
-h, --help show this help message and exit
--chip {auto,esp32,esp32s2,esp32s3,esp32c3}
Target chip type
--port PORT, -p PORT Serial port device
--baud BAUD, -b BAUD Serial port baud rate used when flashing/reading
--gdb-timeout-sec GDB_TIMEOUT_SEC
Overwrite the default internal delay for gdb responses
C:\exp\myproj>python ..\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py info_corefile --help
usage: espcoredump.py info_corefile [-h] [--debug DEBUG] [--gdb GDB] [--core CORE] [--core-format {b64,elf,raw}] [--off OFF]
[--save-core SAVE_CORE] [--rom-elf ROM_ELF] [--print-mem]
prog
positional arguments:
prog Path to program's ELF binary
options:
-h, --help show this help message and exit
--debug DEBUG, -d DEBUG
Log level (0..3)
--gdb GDB, -g GDB Path to gdb
--core CORE, -c CORE Path to core dump file (if skipped core dump will be read from flash)
--core-format {b64,elf,raw}, -t {b64,elf,raw}
File specified with "-c" is an ELF ("elf"), raw (raw) or base64-encoded (b64) binary
--off OFF, -o OFF Offset of coredump partition in flash (type "make partition_table" to see).
--save-core SAVE_CORE, -s SAVE_CORE
Save core to file. Otherwise temporary core file will be deleted. Does not work with "-c"
--rom-elf ROM_ELF, -r ROM_ELF
Path to ROM ELF file. Will use "<target>_rom.elf" if not specified
--print-mem, -m Print memory dump
Code: Select all
C:\exp\myproj>python ..\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py info_corefile -t raw -c coredump.raw build\myproj.elf
espcoredump.py v0.4-dev
Traceback (most recent call last):
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 387, in <module>
temp_core_files = info_corefile()
^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 181, in info_corefile
core_elf_path, target, temp_files = get_core_dump_elf(e_machine=exe_elf.e_machine)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 69, in get_core_dump_elf
loader = ESPCoreDumpFileLoader(args.core, args.core_format == 'b64')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\corefile\loader.py", line 575, in __init__
self.target = self._load_core_src()
^^^^^^^^^^^^^^^^^^^^^
File "C:\exp\frameworks\esp-idf-v4.4.6\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 "0x61f4" is not supported!
C:\exp\dmcs>python ..\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py
Traceback (most recent call last):
File "C:\exp\frameworks\esp-idf-v4.4.6\components\espcoredump\espcoredump.py", line 371, in <module>
if args.debug == 0:
^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'debug'