I'm using VSCode 1.91.0 with ESP-IDF 1.8.0 on MacOS Sonoma 14.5.
I've created a new project using blink template and I'm targeting a WROVER-KIT development board. I'm using all the default settings that ESP-IDF created in settings.json and launch.json and the default debugging target is "Eclipse CDT GDB Adapter".
Building and flashing the project works, and OpenOCD seems to run fine and detect the board. Output looks like:
Code: Select all
OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:27)
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.
...
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 : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : [esp32.cpu0] Debug controller was reset.
Info : [esp32.cpu0] Core was reset.
...
Does anyone have any ideas on how to resolve this?
I've read the docs here: https://github.com/espressif/vscode-esp ... BUGGING.md
Those docs suggest manually adding a "target" block to the launch.json configuration that specifies the port, for example:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"type": "gdbtarget",
"request": "attach",
"name": "Eclipse CDT GDB Adapter",
"target": {
"port": "3333"
}
},
...
]
}
Thank you!
Brian