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:
- MPLAB PICkit 4 In-Circuit Debugger (when in 'AVR mode'),
- MPLAB Snap In-Circuit Debugger (when in 'AVR mode'),
- Atmel-ICE,
- Power Debugger,
-
JTAGICE3 (firmware version 3.0 or newer),
-
EDBG - on-board debuggers on Xplained Pro/Ultra boards,
- mEDBG - on-board debuggers on Xplained Mini/Nano boards,
- nEDBG - on-board debuggers on Curiosity Nano boards (can also be used stand-alone to debug other UPDI targets),
- microUPDI - a DIY debugger for UPDI targets based on the mEDBG firmware. It does not work on the Dx-/Ex-/Sx-series chips. And in order to debug on 0-series ATmegas, you need the most recent firmware 1.19.57, which you get from the microUPDIcore repo. Note that you can use the firmware on any ATmega32U4 development board without additional hardware if you do not need any level-shifting for the serial line.
Debug probes using USB bulk transfer
In addition, the following probes are supported, which rely on the USB bulk transfer mechanism:
- AVR Dragon (firmware version 7.0 or newer),
- AVR JTAGICE mkII (firmware version 7.0 or newer).
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.