Debugging fails using VSC with Intellisense
Posted: Fri Apr 17, 2020 8:57 pm
Hi,
I have configured VSC (1.44.1) together with the C/C++ Intellisense (0.27.0) extension according to this Youtube tutorial: https://www.youtube.com/watch?v=KRyvly_SYS8
I used ESP-IDF windows installer 2.3.
After manually adding the directories to the PATH environment variable, which are listed when executing the ESP-IDF command prompt, I can successfully build the hello world example from the esp-idf examples directory.
However, when I try to debug (using a j-link debugger), I am getting this error message:
However, hello_world.elf (as well as hello_world.bin) do exist in the given directory.
What makes me wonder is the double backslashes in what seems to be the referenced path...
Note: I can see in the VSC terminal window that openocd connected to the ESP32 via JTAG ok:
Does anybody have any idea what is causing this?
In advance thank you for your help!
Regards
Werner
I have configured VSC (1.44.1) together with the C/C++ Intellisense (0.27.0) extension according to this Youtube tutorial: https://www.youtube.com/watch?v=KRyvly_SYS8
I used ESP-IDF windows installer 2.3.
After manually adding the directories to the PATH environment variable, which are listed when executing the ESP-IDF command prompt, I can successfully build the hello world example from the esp-idf examples directory.
However, when I try to debug (using a j-link debugger), I am getting this error message:
However, hello_world.elf (as well as hello_world.bin) do exist in the given directory.
What makes me wonder is the double backslashes in what seems to be the referenced path...
Note: I can see in the VSC terminal window that openocd connected to the ESP32 via JTAG ok:
Code: Select all
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link V11 compiled Dec 13 2019 11:15:48
Info : Hardware version: 11.00
Info : VTarget = 3.315 V
Info : Reduced speed from 20000 kHz to 15000 kHz (maximum).
Info : Reduced speed from 20000 kHz to 15000 kHz (maximum).
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Debug controller 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 1 was reset (pwrstat=0x5F, after clear 0x0F).
Info : Listening on port 3333 for gdb connections
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
In advance thank you for your help!
Regards
Werner