Unfortunately removing the upload flags did not change the result. Also using xplainedmini_dw did not help in this case. I still see the same error of:
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145
In both instances.
Interestingly in the attached image you can see that the Xplained mini does indeed appear as mEDBG device on COM142 and that the PID and VID are identical to those displayed in the error message.
Ah, you have special drivers loaded for this device. AVRDude uses libUSB to communicate with the device. Your current propretiery drivers probably come from Atmel Studio and is not libusb.
Use https://zadig.akeo.ie/ to overwrite the USB drivers for this device to like libusbK, WinUSB or libusb-win32 and see if avrdude sees the device now with your initial upload_protocol = xplainedmini.
Make sure you know what the previous drivers were to reinstall the old drivers if necessary. You can see the loaded driver files in the windows device manager in Driver → Driver Details as a list of files. But you should also be able to go back by simply uninstalling the device in the device manager, removing the libusb filter (there’s a program for that) and replugging the device.
This time we do have some progress but I am still getting an error. I am using Zadig as suggested and have replaced the driver for mEDBG CDC (Interface 1). Using either libusb-win32 or libusbK I get the following:
avrdude: Version 6.3, compiled on Sep 12 2016 at 17:24:16
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\tg0_test\.platformio\packages\tool-avrdude\avrdude.conf"
Using Port : usb
Using Programmer : xplainedmini
avrdude: usbdev_open(): Found mEDBG CDC, serno: ATML2523052700002124
avrdude: Sending sign-on command:
avrdude: jtag3_send(): sending 3 bytes
avrdude: usbdev_send(): wrote -22 out of 7 bytes, err =
avrdude: jtag3_send(): failed to send command to serial port
avrdude: usbdev_recv_frame(): usb_bulk_read():
avrdude: jtag3_recv(): Timeout receiving packet
avrdude: sign-on command: timeout/error communicating with programmer (status -1)
avrdude: failed to sync with the JTAGICE3 in ISP mode
avrdude done. Thank you.
*** [program] Error 1
=================================================================================== [FAILED] Took 2.20 seconds ===================================================================================
Using WinUSB driver I get the same error as previously, the device with matching PID and VID is not found.