Has anyone been able to get an AVR Pocket Programmer to work with Arduino 2.0.3? It works fine with Arduino v1, but with 2.0 I can't even get it to recognize the port that the programmer is attached to. I'm using Minicore to program an ATMEGA328P.
Are there programmers that you have had work with 2.0.3. I'm not tied to the pocket programmer.
The "AVR Pocket Programmer" doesn't create a port, so this is normal and expected. You only need to select the correct programmer in the IDE: Tools > Programmer > USBtinyISP (or "USBtinyISP (slow)" if the target chip is configured for a slow clock rate).
So please don't worry about the lack of a port and go right ahead with programming the ATmega328P as usual. If you have some problem when you try that, come back here with a detailed description of the problem and we'll help you out.
I can reproduce the error. I found it is specific to the version of the AVRDUDE upload tool used by MiniCore, as previously reported here:
The solution provided in that issue thread is to replace the "libusb-win32" driver recommended in SparkFun's installation instructions with the "WinUSB" driver.
Two options for doing that were mentioned:
"Zadig"
"Windows Device Manager
I often recommend Zadig for other driver installation tasks, but I discovered that the project maintainer has recently heavily monetized the website and it is infested with scam "download button" ads that might trick the visitor into downloading malware:
So I can no longer recommend people to visit that website.
Fortunately it seems the Windows Device Manager option is actually superior in this case because you don't even need to install any other software to do it. The instructions are provided here:
I only ran into one problem. This step is not correct (at least on my Windows 11 system):
From the list Manufacturer select Microsoft.
It should be:
From the list Manufacturer select WinUsb Device.
The downside I discovered of changing to the "WinUsb" driver is this causes the programmer to no longer be recognized when you use it with a board of the "Arduino AVR Boards" platform selected:
avrdude: Version 6.3-20190619
Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
Copyright (c) 2007-2014 Joerg Wunsch
System wide configuration file is "C:\Users\per\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino17/etc/avrdude.conf"
Using Port : usb
Using Programmer : usbtiny
avrdude: Error: Could not find USBtiny device (0x1781/0xc9f)
avrdude done. Thank you.
Failed chip erase: uploading error: exit status 1
The reason is that the "Arduino AVR Boards" platform uses the older version of the AVRDUDE upload tool than MiniCore.
I just tried switching the programmer's driver to libusbK and found it now works with MiniCore and "Arduino AVR Boards" both. Unfortunately this takes us back to Zadig because I haven't yet identified an alternative for easily installing the driver.
The person who recommended WinUSB in the MiniCore bug report is actually the maintainer of libusbK so I don't know what to make of that