ESP-IDF V4.4.6 - Can't use core dump

FrancoB
Posts: 6
Joined: Thu Mar 14, 2024 5:58 pm

ESP-IDF V4.4.6 - Can't use core dump

Postby FrancoB » 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:

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
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.

User avatar
ESP_Roland
Posts: 265
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP-IDF V4.4.6 - Can't use core dump

Postby ESP_Roland » Mon Apr 08, 2024 2:06 pm


FrancoB
Posts: 6
Joined: Thu Mar 14, 2024 5:58 pm

Re: ESP-IDF V4.4.6 - Can't use core dump

Postby FrancoB » Mon Apr 08, 2024 2:13 pm

Greetings ESP_Roland. That's correct, that is the other post that I made about the same topic, basically to increment the possibilities of getting an answer. But, as I said, it is me who made that post on GitHub.

Who is online

Users browsing this forum: Google [Bot] and 102 guests