AVRDUDE Could not find USB device "USBasp" error, despite driver being installed

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'm trying to program an ATmega162 using my 51 AVR ISP programmer.  When I run avrdude, I get this error:

 

C:\Program Files (x86)\Atmel Studio\AVRDude>avrdude -p m162 -c usbasp -P USB -U "flash:w:""F:\Files\Dev\EE\BeerGoat\Test1\Test1\Debug\Test1.hex"":i" -vvv
avrdude: invalid file format 'i -vvv' in update specifier
avrdude: error parsing update operation 'flash:w:"F:\Files\Dev\EE\BeerGoat\Test1\Test1\Debug\Test1.hex:i -vvv'

C:\Program Files (x86)\Atmel Studio\AVRDude>avrdude -p m162 -c usbasp -P USB -vvv -U "flash:w:""F:\Files\Dev\EE\BeerGoat\Test1\Test1\Debug\Test1.hex"":i"

avrdude: Version 5.11-Patch#7610, compiled on Aug 31 2011 at 08:02:19
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "C:\Program Files (x86)\Atmel Studio\AVRDude\avrdude.conf"

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

avrdude done.  Thank you.

 

I'm not sure why avrdude is failing to find the device.  I used Zadig to install the driver (as documented here) and Windows can see it just fine (with the correct VID and PID).

 

 

I'm running Windows 7 64-bit, but I turned off UAC and the like for this test.  I didn't run into any hiccups installing the driver.  Avrdude is running with administrative privileges and should have no problem enumerating USB devices.  

 

Any suggestions?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

If anyone else bumps into this (it sounds like a lot of people tend to) I used the steps described here under "Device Driver Installation" and it fixed the problem of not being able to locate the programmer.  It involved downloading the latest libusb-win32 and using the bundled inf-wizard tool to create my own driver for the device.  Then in Device Manager I pointed USBasp to that INF and things are better.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

I had the same problem on my Win7 PC.

I solved it by installing the USBAsp Driver with Zadig! But instead of chossing the default driver, chose the libusb-win32 driver!

 

That is all!