Can't debug hello_world example with ESP-PROG JTAG interface

jmporter34567
Posts: 8
Joined: Fri Jul 23, 2021 6:35 pm

Can't debug hello_world example with ESP-PROG JTAG interface

Postby jmporter34567 » Thu Dec 02, 2021 5:39 pm

Hello,
Obviously I don't really need to debug the hello_world application, but it makes for an easy way to illustrate the problem.

In VSCode, I open the folder "examples\get-started\hello_world" under my esp-idf folder.
I build it, and flash it to the target thru a COM port.
The program runs as expected (displays a message to the COM port, reboots every 10 seconds).

I open a different project and flash it to the target so I will know whether or not the next step is successful.
I verify that the other application runs as expected.

I re-open "hello_world" and flash it to the target thru the ESP-PROG (click View->Command Palette->ESP-IDF: Flash with JTAG, answer Y to 'OpenOCD is not running, launch it ?' dialog).
The program runs as expected (message, reboot, ...)

Then I try to debug it (click Run->Start Debugging->Select Environment=ESP-IDF). A dialog pops up:
Cannot read property 'message' of undefined
Source: Espressif IDF (Extension)

Since flashing thru JTAG has already proven that OpenOCD and the ESP-PROG are both working, this has got to be simply an incorrect or missing setting. Could someone please provide it ?
Thanks
John

ESP_bignacio
Posts: 229
Joined: Wed May 02, 2018 12:12 pm

Re: Can't debug hello_world example with ESP-PROG JTAG interface

Postby ESP_bignacio » Fri Dec 03, 2021 12:02 pm

In your project's .vscode/launch.json can you set "skipVerifyAppBinBeforeDebug": true and try again ?

Who is online

Users browsing this forum: No registered users and 41 guests