I've made some progress getting the debugger working within VS Code. I got it working on a development board, and am now trying to get it working with our own board.
- the module is the ESP32-WROOM-32U.
- the debugger is the ESP PROG.
- I'm not (yet) trying to use the ESP PROG to program the board; I'm still doing through our serial interface.
Here's my launch.json file:
Code: Select all
{
"version": "0.2.0",
"configurations": [
{
"type": "espidf",
"debugPort": 43474,
"logLevel": 2,
"mode": "auto",
"name": "ESP32 OpenOCD",
"initGdbCommands": [
"target remote :3333",
"symbol-file ${workspaceFolder}/build/iqpump.elf",
"set remote hardware-watchpoint-limit 2",
"monitor reset halt",
"flushregs",
"thb app_main",
"c"
]
}
]
}
Code: Select all
Open On-Chip Debugger v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
debug_level: 2
adapter speed: 20000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
❌ Error: JTAG scan chain interrogation failed: all ones
Error: Check JTA❌ G interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
❌ Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
Thanks...