avrdude.exe missing

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

alright, I just started using winavr. I followed the document provided by Colin O'Flynn, "Downloading, Installing and Configuring WinAVR".

I successfully downloaded the latest winavr version released last may, inputted the sample source code provided in the document. I clicked the "make" option in the programmer's notepad, and it was alright. But when i clicked the "program", an error was displayed.

"avrdude.exe - Unable To Locate Component"
"This application has failed to start because libusb0.dll was not found. Re-installing the application may fix this problem."

Any ideas?

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

Yup this was discussed recently (the newly fixed search function should find you "libusb0.dll"). It's a problem in the latest 20070525 release of WinAVR. The simplest workaround for the time being seems to be to add the path to the copy of libusb0.dll to your PATH environment string.

Just out of interest, which programmer interface are you using?

Cliff

EDIT: Yup, search found it:

https://www.avrfreaks.net/index.p...

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

none, yet. but ill be using the STK500. im just trying to recall how to program the AVR (after 2 years) and orienting my self with winavr (after imagecraft).

thanks, cliff.

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

Well if I was using an STK500 then, with all due respect and reverence to avrdude, I'd be using AVR Studio to program with it.

Cliff

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

where can i find the "PATH environment string"? :)

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

is avrdude a programmer? sorry, not really familiar.

oh ok... i get it. use the PN for the make file. then access the .coff in avr studio.

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

avrdude is a piece of software that takes your built Intel hex files and transmits them over various pieces of interface electronics (usually using Atmel's ISP system) to download the binary into your AVR chip. In other words when you "make program" in PN you aren't saying "make this software program for me" (by this stage that should already have happened). You are saying "now take this .hex file I've built and transmit it electronically into this AVR that I have got attached via this programming interface electronics.

And NO you do not want to be using COFF files in this day and age (boy this must be an old article if its talking about COFF files). The executable/debuggable compiler output file of choice these days is the .elf file which holds the program in Elf/Dwarf2 format - that's what AVR Studio really likes to use for simulating and debugging.

Oh and as for setting the PATH. If you right click the "My Computer" item on your desktop and select "properties" then in one of the tabs on that dialog (it varies between Windows versions) is the place where you can edit system and current user environment strings. I'd edit the "system" one myself usually - find PATH in the list, edit it and add the path where libusb0.dll is to the front of it (followed by a semi-colon) but I have a feeling that you don't really want to be using "make program" or avrdude.exe anyway.

Cliff

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

Very much appreciated, cliff.

Now I need to read everything about AVR again. :((

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

I am having the same "libusb0.dll was not found" problem.

I added "C:\Program Files\WinAVR-20070525\utils\libusb\bin" to my system enviroment variables, but I still get the error.

Go easy, I'm a newbie at Windows XP.

Any suggestions?

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

Instead of adding the directory where the DLL is located to the PATH environment variable, I personally recommend that you copy the DLL to the \bin subdirectory. That will be the fix in the next release of WinAVR anyway.

Sorry for all the hassles with the latest release.

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

I added

PATH += C:\Program Files\WinAVR-20070525\utils\libusb\bin

to my makefile and that seemed to work. I'll try copying the DLL to the bin subdirectory so I don't have to modify all my makefiles.

Don't be sorry, I have nothing but appreciation for your fantastic work.

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

I found my mistake. Earlier, instead of adding the directory to the existing PATH variable, I created a new variable.

Thanks agian for your help.

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

sorry to bump that old topic but I've been messing around in the variable path to allowed a program to be launched via command line but it messed up the path for avrdude. Instead of a total re-install, someone knows the trick to add it back ? I have the "AVR32_HOME" variable with the correct path but I can build anything.

 

thanks

 

edit: i actually repair the thing with the install file (took less than 2min)

Last Edited: Fri. Sep 18, 2015 - 09:31 PM