I am using VSCode with the official Espressif extension. Windows 11.
On custom board there is a USB "mini" connector connected to the D+/D- pins of the WROOM module. The D+/D- traces are about 70mm long and 12mil wide. I can program using the CDC serial- i.e. using the built-in USB. There is no separate USB/UART adapter in use. The uploaded firmware has several printf() and stdout appears over the USB interface
So: I think this proves that the D+/D- connections are good.
I have checked the efuses. All the JTAG fuses are default 0. So GPIO15 strapping is ignored and the device should use the USB Serial/JTAG controller built-in interface.
BUT: when attempting to start the OpenOCD server, I always get
Code: Select all
❌ Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
❌ Error: esp_usb_jtag: could not find or open device!
C:\Users\Adam\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\share\openocd\scripts/target/esp_common.cfg:9: Error:
at file "C:\Users\Adam\.espressif\tools\openocd-esp32\v0.12.0-esp32-20241016\openocd-esp32\share\openocd\scripts/target/esp_common.cfg", line 9
Error: [esp32c6] Unsupported DTM version: -1
Error: [esp32c6] Could not identify target type.I cannot think what to do! Why does the serial route of the built-in USB work, while JTAG fails?
Any ideas would be warmly welcomed!
Thanks in advance, Adam