Cannot debug in VSCode

crgarcia
Posts: 9
Joined: Wed Sep 09, 2020 9:52 pm

Cannot debug in VSCode

Postby crgarcia » Wed Sep 09, 2020 10:04 pm

Hi,
I am new with ESP32. I installed all the tools from the official website and then the VSCode extension following the wizard.
I can build and flash the program into the WROOM ESP32, but I am unable to debug:

Code: Select all

Open On-Chip Debugger  v0.10.0-esp32-20191114 (2019-11-14-14:19)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
WARNING: boards/esp32-wrover.cfg is deprecated, and may be removed in a future release.
         If your board is ESP32-WROVER-KIT, use board/esp32-wrover-kit-1.8v.cfg instead.
❌ Error: Debug ❌ adapter doesn't support any transports?
embedded:startup.tcl:24: Error: 
in procedure 'script' 
at file "embedded:startup.tcl", line 63
at file "C:\Users\crgar\.espressif\tools\openocd-esp32\v0.10.0-esp32-20191114\openocd-esp32\share\openocd\scripts/board/esp32-wrover.cfg", line 4
in procedure 'transport' called at file "C:\Users\crgar\.espressif\tools\openocd-esp32\v0.10.0-esp32-20191114\openocd-esp32\share\openocd\scripts/target/esp32.cfg", line 2
in procedure 'ocd_bouncer' 
at file "embedded:startup.tcl", line 24
[Stopped] : OpenOCD Server
I have both esp32-wrover.cfg and esp32-wrover-kit-1.8v.cfg, but I don't know where that can be configured.
If I run openocd -f board/esp32-wrover-kit-1.8v.cfg from the terminal, this is what i get:

Code: Select all

Open On-Chip Debugger  v0.10.0-esp32-20191114 (2019-11-14-14:19)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: type 'esp32' is missing virt2phys
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of esp32.irom does not support free_driver_priv()
Warn : Flash driver of esp32.drom does not support free_driver_priv()
My laun
ch.json is

Code: Select all

{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "type": "espidf",
            "name": "Launch",
            "request": "launch"
        }
    ]
}
Do you know where could the issue be?

Thank you!

User avatar
AndreiGramakov
Posts: 5
Joined: Fri Apr 03, 2020 8:03 am
Location: Brno, CZ
Contact:

Re: Cannot debug in VSCode

Postby AndreiGramakov » Tue Sep 15, 2020 9:20 am

Hello!

Have you installed the driver for JTAG debugging?

If not, please take a look at the instruction:

https://docs.espressif.com/projects/esp ... sb-drivers
Embedded Sofware Engineer @ Espressif Systems

Who is online

Users browsing this forum: No registered users and 38 guests