Supported debug probes

PyAvrOCD provides access to AVR OCDs by means of Microchip's debug probes. In addition, it also supports some DIY debug probes.

Debug probes using the USB HID protocol

The following debug probes use the human interface device protocol (HID) and can be used without installing any drivers:

Debug probes using USB bulk transfer

In addition, the following probes are supported, which rely on the USB bulk transfer mechanism:

Note that under Windows, you may have to install the WinUSB driver using Zadig.

Debug probes using a serial line

Finally, there are debug probes that use the serial line:

  • dw-link (firmware version 7 or newer) - DIY debugger running on an Arduino UNO R3 , which uses a variant of the JTAGICE mkII protocol (only debugWIRE is supported),
  • AVR JTAG ICE (JTAGICE mkI) and its clones - JTAG only, for the MCUs it was made for: ATmega16(A), ATmega32(A), ATmega64(A), ATmega128(A), ATmega162, ATmega169(A), and AT90CAN128. Only hardware breakpoints (at most four) can be used, and single-stepping is slow. Tested with a clone reporting firmware version 0x80.

Switching to AVR mode

Note that Snap and PICkit4 need to be switched to 'AVR mode'. This can be accomplished as follows by using avrdude (>= Version 7.3):

avrdude -c snap_isp -Pusb -xmode=avr

With PICkit4, it is similar:

avrdude -c pickit4_isp -Pusb -xmode=avr

In both cases, you can check whether you were successful by typing the same command again. If you get the message that the debugger is still in 'PIC' mode, the firmware of the debug probe is ancient, and you need to flash new firmware first using MPLAB X.

Downgrading more recent debug probes

If you do not own one of the above debug probes, but you own a PICkit5 or PICkit Basic, you can consider downgrading it to a PICkit4 or SNAP, respectively.