JTAG pinout detector

From Hackerspace Brussels
Jump to: navigation, search


This code can be used in combination with an Arduino Mega in order to detect the JTAG pinout of your prefered electronic device.


Code modified from EnumJTAG and Arduinull:


Arduino Mega at 3.3v[edit]

  • Use the arduino mega pins 22-43
  • jtag TAP reset before every try
  • output in tab-separated table
  • Your arduino mega should run at 3.3v, for example, by using a hacked USB cable, which forks the 5v power from the USB to inject it into the external power connector


Upload one here. Ptr?

Arduino mega.jpg

List of devices tested[edit]


  • device 1
  • device 2
  • device 3

Does not work[edit]

  • device 1
  • device 2
  • device 3



  • Port the code to an Arduino Duemilanove (total of 16 digital IO pins available -- pins 2 till 19 (analog pins 0 to 4 are usable for gpio)
  • Document the 3.3v hacked USB cable
  • Better documentation on how to use the software
  • How to upload the code with avrdude on the command line
  • PDE to HEX file conversion