raspberrypi / debugprobe

748 stars 201 forks source link

Add JTAG support #44

Open P33M opened 1 year ago

P33M commented 1 year ago

Given that we already swap probe programs in and out of PIO on the fly, it would be easy enough to add JTAG support.

How does PIO assist in this scenario - is the DAP protocol sufficiently high-level that we could accelerate scan-IR and scan-DR ops?

diggit commented 1 year ago

DAP JTAG API is pretty low level. https://arm-software.github.io/CMSIS_5/DAP/html/group__DAP__JTAG__Sequence.html PIO could handle this configurable 1~64 bit "SPI".

Maybe at least Transfer commands could be handled by PIO more effectively.

Patronics commented 6 months ago

Worth noting that there seem to be a few other projects that implement JTAG on the Pi Pico, perhaps some of that functionality could be ported over relatively easily?

There's https://github.com/phdussud/pico-dirtyJtag/

https://github.com/kholia/xvc-pico/

and https://git.lain.faith/sys64738/DragonProbe.git