riscv-openocd/doc/usb_adapters
Ahmed BOUDJELIDA 9c91ce8d24 contrib/firmware: add new adapter ANGIE's firmware/bitstream code
This is ANGIE's firmware and bitstream code.
The 'Embeded C' code is based on the openULINK project.
The hdl bitstream source code is for the spartan-6 FPGA included in
ANGIE.

Since ANGIE has a different microcontroller (EZ-USB FX2) than openULINK
(EZ-USB AN2131), the registers file (reg_ezusb.h) has been changed
completely, so are the descriptors, interruptions and the endpoints
configuration.

Change-Id: I70590c7c58bac6f1939c5ffba57e87d86850664d
Signed-off-by: Ahmed BOUDJELIDA <aboudjelida@nanoxplore.com>
Reviewed-on: https://review.openocd.org/c/openocd/+/7701
Tested-by: jenkins
Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
2023-08-12 16:42:19 +00:00
..
angie contrib/firmware: add new adapter ANGIE's firmware/bitstream code 2023-08-12 16:42:19 +00:00
cmsis_dap doc: usb_adapters: add other adapters 2023-01-15 15:05:15 +00:00
esp_usb_jtag doc:usb_adapters: add lsusb dump of esp_usb_jtag 2023-01-28 15:22:04 +00:00
ft232r doc: usb_adapters: add lsusb dump of few adapters 2023-01-15 15:05:07 +00:00
ftdi doc: usb_adapters: add other adapters 2023-01-15 15:05:15 +00:00
icdi doc: usb_adapters: add lsusb dump of few adapters 2023-01-15 15:05:07 +00:00
jlink doc: usb_adapters: add other adapters 2023-01-15 15:05:15 +00:00
kitprog doc: usb_adapters: add other adapters 2023-01-15 15:05:15 +00:00
nulink doc: usb_adapters: add lsusb dump of few adapters 2023-01-15 15:05:07 +00:00
stlink doc:usb_adapters: add lsusb dump of STLINK-V3PWR 2023-07-14 14:01:46 +00:00
xds110 doc: usb_adapters: add lsusb dump of few adapters 2023-01-15 15:05:07 +00:00
dump.sh doc: usb_adapters: add container for lsusb dump of adapters 2023-01-15 15:04:57 +00:00
readme.txt doc:usb_adapters: add lsusb dump of esp_usb_jtag 2023-01-28 15:22:04 +00:00

readme.txt

# SPDX-License-Identifier: GPL-2.0-or-later OR GFDL-1.2-no-invariants-or-later

This folder contains a collection of dumps of USB descriptors, obtained through
Linux lsusb command, of several USB adapters supported by OpenOCD.
This collection should help maintaining adapter drivers even if the developer
doesn't have access to all the devices supported by the driver.

To add a new file, run:

	./doc/usb_adapters/dump.sh ${vid} ${pid} \
		> doc/usb_adapters/${driver}/${vid}_${pid}_${short_description}.txt

eventually edit the file to add some extra comment, then submit the file to
OpenOCD gerrit, as explained in HACKING.

The dumps are organized in subfolders corresponding to OpenOCD drivers:
- cmsis_dap;
- esp_usb_jtag;
- ft232r;
- ftdi;
- icdi;
- jlink;
- kitprog;
- nulink;
- stlink;
- xds110.

The script above assumes the user has granted access permissions to the USB
device file in
	/dev/bus/usb/<n>/<m>
This is usually the case when the device is listed in
	contrib/60-openocd.rules
and this udev rules file is properly installed in the host machine.
If the user has no proper access permissions, the script has to be run as
root or through 'sudo'.

Old versions of 'lsusb -v' dump cryptic errors like:
	can't get device qualifier: Resource temporarily unavailable
	can't get debug descriptor: Resource temporarily unavailable
when some optional descriptor is not present.
This is fixed in usbutils v014.
If you get such messages simply ignore them. They are printed on stderr, so
will not be included in the generated file as the redirection '>' does only
redirects stdout.