Closed FelipeMdeO closed 3 months ago
@fdcavalcanti @tmedicci please take a look!
@FelipeMdeO seems similar to this issue: https://github.com/espressif/openocd-esp32/issues/315
Hi @FelipeMdeO ,
Considering the message Error: esp_usb_jtag: could not find or open device!
, it seems the USB/JTAG port is not connected. Can you please double-check if the 2nd USB port (the one in the right) is connected?
You should expected something like that on your dmesg
when you attach the USB-C cable to the USB/JTAG port of the ESP32-C6:
[1214203.144071] usb 3-1.2.2: new full-speed USB device number 109 using xhci_hcd
[1214203.259848] usb 3-1.2.2: New USB device found, idVendor=303a, idProduct=1001, bcdDevice= 1.02
[1214203.259867] usb 3-1.2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1214203.259874] usb 3-1.2.2: Product: USB JTAG/serial debug unit
[1214203.259880] usb 3-1.2.2: Manufacturer: Espressif
[1214203.259884] usb 3-1.2.2: SerialNumber: 60:55:F9:F7:4C:D4
[1214203.274098] cdc_acm 3-1.2.2:1.0: ttyACM0: USB ACM device
Hello @tmedicci ,
Yes, USB/JTAG port is connected, please look image below:
PS: I am using esp32c6 devkit m
@FelipeMdeO see the LIBUSB_ERROR_ACCESS, please try the same command with "sudo"
@FelipeMdeO Hi Felipe, what OS are you using? Did you check udev rules?
Hello @fdcavalcant.
I am using Ubuntu 20 .04 noble.
@acassis Thank you very much, running with sudo it worked.
Hi @FelipeMdeO , you can set the udev rules too to avoid this kind of error: https://docs.espressif.com/projects/esp-idf/en/latest/esp32c6/api-guides/jtag-debugging/configure-builtin-jtag.html#configure-usb-drivers
Thanks for reporting. We will update the documentation to make it clearer...
Description
Description
Hello All,
I am trying debug esp32c6 using open ocd, I followed tutorial in link: [https://nuttx.incubator.apache.org/docs/latest/platforms/risc-v/esp32c6/index.html#debugging-with-openocd
openocd -c 'set ESP_RTOS hwthread; set ESP_FLASH_SIZE 0' -f board/esp32c6-builtin.cfg
Do you have any idea what's happen?
Verification