Simple example of using PlatformIO for AVR projects.
💡 Are you getting the following error when trying to upload?
avrdude: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2145 avrdude done. Thank you. *** [upload] Error 1
If so, keep reading!
By default, Microchip Studio installs HID Input Device
drivers for the Xplained Mini.
These drivers are incompatible with avrdude
(used by PlatformIO), which uses libusb
to communicate with the Xplained Mini instead.
This guide details the process of using Zadig to replace the HID drivers.
Warning
This process will result in Microchip Studio no longer recognising the Xplained Mini as a connected device, as we have replaced its Xplained Mini drivers.To revert these changes and restore Microchip Studio functionality, follow the steps detailed in Reverting Driver Changes.
-
Install Zadig
-
Click
Options
>List All Devices
-
Select
mEDBG CMSIS-DAP (Interface 0)
-
Change the driver to
libusbK
orlibusb-win32
-
Click
Replace Driver
-
Try to upload with PlatformIO again
To restore the original HID Input Device
driver, follow the below steps.
-
Open
Device Manager
(Win
+x
>m
) -
Expand
libusbK USB Devices
-
Right click
mEDGB CMSIS-DAP (Interface 0)
-
Click
Update driver
-
Click
Browse my computer for drivers
-
Search for drivers under
C:\Windows\INF
(including subfolders) -
Click
Let me pick from a list of available drivers on my computer
-
Click
USB Input Device
Note
SelectmEDBG CMSIS-DAP (Interface 0)
here to re-configure the drivers for PlatformIO. -
Click
Next
The Xplained Mini should then appear in Microchip Studio, and can be programmed as usual.