The string in optional command 'ftdi device_desc' is compared with USB field 
'iProduct', that in your case is 'Digilent USB Device'.
There are 4 config files with such string:
- tcl/interface/ftdi/digilent_jtag_smt2_nc.cfg
- tcl/interface/ftdi/digilent_jtag_hs3.cfg
- tcl/board/digilent_nexys_video.cfg
- tcl/board/digilent_analog_discovery.cfg

plus this without the string
- tcl/interface/ftdi/digilent_jtag_smt2.cfg

Maybe one of them works for you

I have never owned such devices, cannot help more.


---

** [tickets:#357] digilent-hs2.cfg not working with Digilent HS2 JTAG adapter**

**Status:** new
**Milestone:** 0.10.0
**Created:** Tue Jul 19, 2022 03:03 PM UTC by Johannes Wüthrich
**Last Updated:** Tue Jul 19, 2022 03:03 PM UTC
**Owner:** nobody
**Attachments:**

- 
[Digilent-HS2-lsusb.txt](https://sourceforge.net/p/openocd/tickets/357/attachment/Digilent-HS2-lsusb.txt)
 (2.4 kB; text/plain)


The digilent-hs2.cfg config file currently provided by OpenOCD 
(`openocd/tcl/interface/ftdi/digilent-hs2.cfg`) does not allow to recognize the 
Digilent HS2 adapter which I am using.

The problem is most likely due to an incorrect / no longer correct 
`device_desc`filter in the current config file:

`Line 6: ftdi device_desc "Digilent Adept USB Device"`

Removing this line from the config file (or commenting it) allows the Digilent 
HS2 to be properly recognized.

For reference, the JTAG adapter I am using is a `Digilent HS2 Rev.4` bought in 
2021.

Under `lsusb` the adapter shows up as follows:
`Bus 001 Device 084: ID 0403:6014 Future Technology Devices International, Ltd 
FT232H Single HS USB-UART/FIFO IC`

The verbose output of `lsusb -vd 0403:6014` is attached.

The `dmesg` output when connecting the adapter is:

`[538700.013858] usb 1-6: USB disconnect, device number 84
[538703.215083] usb 1-6: new high-speed USB device number 90 using xhci_hcd
[538703.368280] usb 1-6: New USB device found, idVendor=0403, idProduct=6014, 
bcdDevice= 9.00
[538703.368286] usb 1-6: New USB device strings: Mfr=1, Product=2, 
SerialNumber=3
[538703.368290] usb 1-6: Product: Digilent USB Device
[538703.368292] usb 1-6: Manufacturer: Digilent
[538703.368295] usb 1-6: SerialNumber: 210249AFCD0B
[538703.372699] ftdi_sio 1-6:1.0: FTDI USB Serial Device converter detected
[538703.372809] usb 1-6: Detected FT232H
[538703.373147] usb 1-6: FTDI USB Serial Device converter now attached to 
ttyUSB0`



---

Sent from sourceforge.net because openocd-devel@lists.sourceforge.net is 
subscribed to https://sourceforge.net/p/openocd/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/openocd/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.


Reply via email to