Debugging fails using VSC with Intellisense

wmauss
Posts: 2
Joined: Sun Dec 22, 2019 7:52 am

Debugging fails using VSC with Intellisense

Postby wmauss » 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:
Image
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).
Does anybody have any idea what is causing this?

In advance thank you for your help!

Regards
Werner

ESP_igrr
Posts: 2072
Joined: Tue Dec 01, 2015 8:37 am

Re: Debugging fails using VSC with Intellisense

Postby ESP_igrr » Sat Apr 18, 2020 11:03 pm

Hi Werner,

just to check, you aren't using the official ESP-IDF VS Code extension (https://marketplace.visualstudio.com/it ... -extension), are you?

If no, perhaps you could try it? The installation guide can be found here: https://github.com/espressif/vscode-esp ... tion-guide.

If you prefer to debug through the Microsoft C++ extension, there is an example launch.json file here: https://github.com/espressif/vscode-esp ... n-to-debug

Who is online

Users browsing this forum: No registered users and 65 guests