Setting up OpenOCD debugger for IDF VS Code?
Posted: Sun Feb 07, 2021 7:28 pm
Hi I've followed this guide: https://github.com/Adam-U/ESP32_VSCode_Debug
on how to setup the OCD debugger with VS code using msys32 (which for some reason doesn't seem right and unnecessery but what ever...) and when I come to debug my code with "Native debug" extention it spits out this error:
which according to my guess indicates that I have probably setup the file launch.json wrong like that:
What are the possible options to fix this? I've went over the ESPressif official PDF on debugging but not much organized info there about the different debugging options...
I'm using the following hardware:
ESP-Prog
esp32 dev kit V1
on how to setup the OCD debugger with VS code using msys32 (which for some reason doesn't seem right and unnecessery but what ever...) and when I come to debug my code with "Native debug" extention it spits out this error:
Code: Select all
Running executable
:3333: The system tried to join a drive to a directory on a joined drive.
"monitor" command not supported by this target.
Register cache flushed.
No hardware breakpoint support in the target.
The program is not being run.
Code: Select all
{
"version": "0.2.0",
"configurations":
[
{
"type": "gdb",
"request": "launch",
"name": "Launch Program",
"target": "./build/${workspaceFolderBasename}.elf",
"cwd": "${workspaceFolder}",
"gdbpath": "C:/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb",
"autorun":
[
"target remote :3333",
"mon reset halt",
"flushregs",
"thb app_main",
"c"
],
"preLaunchTask": "openocd"
}
]
}
I'm using the following hardware:
ESP-Prog
esp32 dev kit V1