ESP-IDF V4.4.6 - Can't use core dump
Posted: Fri Apr 05, 2024 7:35 pm
Greetings.
I'm trying to use the debug functionality of core dump in an ESP32 development board. I enabled the core dump "save in flash" option in the menuconfig, made a simple code that just run a while loop in main without blocking the task, so a reset will trigger, and then tried to read the core dump using the following command:
espcoredump.py -p COM4 dbg_corefile
For the record, I tried the same command but with the corresponding path to the firmware ".elf" that is generated when compiling the project.
But, I get the following error in the ESP-IDF terminal:
Any ideas what does this mean? I used a USB to UART converter with both CP210x and CH340 chip, because I read in a post that the problema could be realted to the USB to UART converter, but it seems that it isn't.
I'm trying to use the debug functionality of core dump in an ESP32 development board. I enabled the core dump "save in flash" option in the menuconfig, made a simple code that just run a while loop in main without blocking the task, so a reset will trigger, and then tried to read the core dump using the following command:
espcoredump.py -p COM4 dbg_corefile
For the record, I tried the same command but with the corresponding path to the firmware ".elf" that is generated when compiling the project.
But, I get the following error in the ESP-IDF terminal:
Code: Select all
C:\Espressif\esp-idf\v4.4.6\esp-idf\components\espcoredump\espcoredump.py:2
# ESP-IDF Core Dump Utility
^
SyntaxError: Invalid or unexpected token
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1185:20)
at Module._compile (node:internal/modules/cjs/loader:1227:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1326:10)
at Module.load (node:internal/modules/cjs/loader:1126:32)
at Module._load (node:internal/modules/cjs/loader:967:12)
at c._load (node:electron/js2c/node_init:2:13672)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:101:12)
at node:internal/main/run_main_module:23:47
Node.js v18.18.2