USBasp flashing pro mini, nano

I use the following environment:
System WIN10 pro current version
Arduino IDE 2.2.1 CLI 0.34.0
Device manager no errors for:
libus-win32 device
USBasp driver 12.7.3

=>My problem
When flashing pro mini or nano boards I get the following error message
avrdude: ser_open(): can't open device "\.\COM14": The system cannot find the specified file.

System test CMD avrdude:
CMD: avrdude -c usbasp -p m328p
result:
C:\Users\Win10>avrdude -c usbasp -p m328p
avrdude: Warning: cannot query manufacturer for device: usb_control_msg: sending control message failed, win error: A device connected to the system is not working.

avrdude: error: could not find USB device "USBasp" with vid=0x16c0 pid=0x5dc

=> Note: these are ancient boards that I want to flash

I'm neither a Windows nor Arduino expert, so I'm grateful for any beginner tips

When you got that error message, were you attempting to flash the board via the USBasp programmer, or via the USB to serial connection (i.e., the "FTDI" module in the case of the Pro Mini and the USB socket on the board in the case of the Nano) as usual?

Do you have a USBasp hardware programmer connected to your computer?

Yes I did. It is based on a MEGA8A U-TH chip with a USB-C port an 10 pin SPI connector.

Now and then I get the same issue on my Win11 PC

I then use Zadig to replace the USBASP driver with either "libusb-win32" or "libusbk". the latter has the highest success rate for me.

Someone made a nice writeup already how to do that.

worth a try.

I agree with @hmeijdam.

The use of Zadig to install the driver is recommended on the official USBasp website:

https://fischl.de/usbasp/#:~:text=Please%20use%20this%20driver%20installation%20tool%20for%20Windows

hi hmeijdam, ptillisch
thank you for the hints however after reinstalling zadig and configuring the result remains the same:
avrdude: ser_open(): can't open device "\.\COM14": Das System kann die angegebene Datei nicht finden.
Failed uploading: uploading error: exit status 1
allthougt devicemanager shows:
libusb-win32 devices
USBasp
:-(( stumped

The driver installation was intended to fix this error:

As for your other error:

If you want help with that then you must answer the question I asked you yesterday:

Please make a special effort to carefully read our replies and to make clear and detailed responses providing all the information we request.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.