wuxx / nanoDLA

24MHz sampling rate Logic Analyzer based on fx2lafw
602 stars 160 forks source link

How to use nanoDLA as JTAG Adapter #5

Open elfmimi opened 3 years ago

elfmimi commented 3 years ago

nanoDLA can be also used as a JTAG Adapter. (only JTAG , no SWD for now)

operation confirmed with both v1.2 and v1.3

https://github.com/elfmimi/ixo-usb-jtag/releases/tag/v0.0.1%2B

wuxx commented 3 years ago

very interesting! never thought it could be used like this

wuxx commented 3 years ago

hello elfmimi, wondering how to use it, is it use with the openocd? do you have the script, wanna to have a try.

elfmimi commented 3 years ago

I'm glad to know your interest in this. yes openocd . I'm not aware of any other software that could be used with.

I used LonganNano (GD32VF103) and RaspberryPi Zero (BCM2835) for testing nanoDLA-JTAG . But both of these are very tricky to start with.

edit: I can confirm it also works with STM32F103. I've not yet tried, so I will test it later, but if it were to perform good with STM32F103, the command line will be like this.

just resetting: openocd -f interface/usb-jtag.cfg -f target/stm32f1x.cfg -c "init; reset; exit" downloading and programming firmware: openocd -f interface/usb-jtag.cfg -f target/stm32f1x.cfg -c "program firmware.elf exit" openocd -f interface/usb-jtag.cfg -f target/stm32f1x.cfg -c "program firmware.bin 0x08000000 exit" starting gdb server for debugging: openocd -f interface/usb-jtag.cfg -f target/stm32f1x.cfg

note: on Windows WinUSB driver must be assigned to USB ID 16c0:06ad using Zadig (or equivalent).

elfmimi commented 3 years ago

New version with MS OS 2.0 Descriptors.

With this new version of usbjtag-nanodla.hex firmware, WinUSB driver will be installed automatically.

operation confirmed with both v1.2 and v1.3

https://github.com/elfmimi/ixo-usb-jtag/releases/tag/v0.0.1%2B%2B

elfmimi commented 3 years ago

You know, this product description aroused my curiosity. nanoDLA-Product-Description

wuxx commented 3 years ago

haha, it is originally meant to test digital signals