Can't debug hello_world example with ESP-PROG JTAG interface
Posted: 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
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