From 4a5efa7635b320e621fb307b115e196ae6e8982b Mon Sep 17 00:00:00 2001 From: mcuee Date: Sun, 23 Oct 2022 14:24:57 +0800 Subject: [PATCH] Add xplainedpro_pdi programmer This will fix https://github.com/avrdudes/avrdude/issues/1143. Xplained Pro should be able to support PDI mode as per the documentation. Reference: take note that the following document does not cover UPDI support. https://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-42096-Microcontrollers-Embedded-Debugger_User-Guide.pdf Reference discussion: * https://github.com/avrdudes/avrdude/pull/1139#issuecomment-1286760773 * https://github.com/avrdudes/avrdude/discussions/1019#discussioncomment-3569440 --- src/avrdude.conf.in | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/avrdude.conf.in b/src/avrdude.conf.in index 706b915a..211f2bb4 100644 --- a/src/avrdude.conf.in +++ b/src/avrdude.conf.in @@ -2044,6 +2044,20 @@ programmer usbpid = 0x2111; ; +#------------------------------------------------------------ +# xplainedpro_pdi +#------------------------------------------------------------ + +programmer + id = "xplainedpro_pdi"; + desc = "Atmel AVR XplainedPro in PDI mode"; + type = "jtagice3_pdi"; + prog_modes = PM_PDI; + connection_type = usb; + usbpid = 0x2111; + hvupdi_support = 1; +; + #------------------------------------------------------------ # xplainedpro_updi #------------------------------------------------------------