Skip to content

zoobab/DirtyJTAG

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 3 commits ahead, 53 commits behind dirtyjtag:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
ld
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

noswpatv3

DirtyJTAG

Build Status

DirtyJTAG is a JTAG adapter firmware for $2 ST-Link clones and generic STM32 development boards ("blue pill"/"black pill" STM32F101 and STM32F103 based ARM boards). The DirtyJTAG project was created to find an alternative to the obsolete (but cheap) LPT Wiggler cables, and expensive USB JTAG probes.

DirtyJTAG is dirty and dirt cheap, but is not fast nor a perfect implementation of the JTAG protocol. Yet it is around 500 sloccount lines, therefore it is easily understandable and hackable.

DirtyJTAG is supported in mainline UrJTAG, see the "Installing UrJTAG with DirtyJTAG support" page.

If you prefer OpenOCD to UrJTAG, I suggest using Zoobab's fork of Versaloon firmware, which is available on his GitHub repository.

Build your DirtyJTAG adapter

Bluepill ST-Link v2 clone (dongle) ST-Link v2 clone (white case) "Baite" ST-Link v2 clone
Bluepill icon ST-Link v2 dongle ST-Link v2 Baite dongle
Instructions SWD (recommended)DFU Instructions No instructions yet

USB VID and PID

All DirtyJTAG-flashed devices appear with the following USB VID=0x1209/PID=0xC0CA (which belongs to "InterBiometrics") :

$ lsusb
[...]
Bus 002 Device 003: ID 1209:c0ca InterBiometrics

The PID was obtained through http://pid.codes, which is a registry of USB PID codes for open source hardware projects. More infos: http://pid.codes/1209/C0CA/

Dmesg also give some output where you can see the Manufacturer field as "DirtyJTAG":

$ dmesg
[  148.223008] usb 2-1: USB disconnect, device number 2
[  149.669794] usb 2-1: new full-speed USB device number 3 using xhci_hcd
[  149.812853] usb 2-1: New USB device found, idVendor=1209, idProduct=c0ca
[  149.812859] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  149.812863] usb 2-1: Product: Jean THOMAS
[  149.812866] usb 2-1: Manufacturer: DirtyJTAG
[  149.812869] usb 2-1: SerialNumber: no serial :-)

Some docs

Inspiration & links

About

JTAG adapter firmware for STM32F1 dev boards (bluepill, stlinkv2)

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 87.4%
  • Makefile 4.4%
  • C++ 3.6%
  • Dockerfile 2.3%
  • Shell 1.4%
  • Python 0.9%