About running avrdude as a stand alone application

About running avrdude as a stand alone application on a Windows 7 32-bit computer

I have tried to run a stand alone avrdude on my laptop but I get errors. How can I fix them?

I unzipped the last version of avrdude ( avrdude-6.1-mingw32.zip ) which I found on the site Index of /releases/avrdude/ and put its content in a folder named c:\Avrdude on my hard disk.

I launched avrdude.exe but got the error "libusb0.dll" is missing from your computer".

I searched for libusb0.dll on the net, found it and copy it into the directory c:\Avrdude.

I launched avrdude.exe again. The error regarding "libusb0.dll" does no longer appears but the avrdude window lives on the screen for less than a second after which it closes automatically.

For the moment I need just avrdude and no other software tool related to AVRs and I simply do not know how to make this program work as a stand alone application.

subway:
About running avrdude as a stand alone application on a Windows 7 32-bit computer

I have tried to run a stand alone avrdude on my laptop but I get errors. How can I fix them?

I unzipped the last version of avrdude ( avrdude-6.1-mingw32.zip ) which I found on the site Index of /releases/avrdude/ and put its content in a folder named c:\Avrdude on my hard disk.

I launched avrdude.exe but got the error "libusb0.dll" is missing from your computer".

I searched for libusb0.dll on the net, found it and copy it into the directory c:\Avrdude.

I launched avrdude.exe again. The error regarding "libusb0.dll" does no longer appears but the avrdude window lives on the screen for less than a second after which it closes automatically.

For the moment I need just avrdude and no other software tool related to AVRs and I simply do not know how to make this program work as a stand alone application.

It is a command line utility - you run it from the command line, and pass the appropriate arguments to it to tell it what to do. If you just doubleclick it, that runs it with no command line arguments, so it just outputs some text (I forget what) and exits. Please read the documentation - you would know this already if you had.

Thank you. So the idea is to launch avrdude from within cmd or PowerCmd even if the command avrdude.exe has no arguments. By clinking directly the file, just a brief window, that disappears in an instant, is generated.
Avrdude works now.

c:\Avrdude>avrdude.exe

Usage: avrdude.exe [options]
Options:
  -p <partno>                Required. Specify AVR device.
  -b <baudrate>              Override RS-232 baud rate.
  -B <bitclock>              Specify JTAG/STK500v2 bit clock period (us).
  -C <config-file>           Specify location of configuration file.
  -c <programmer>            Specify programmer type.
  -D                         Disable auto erase for flash memory
  -i <delay>                 ISP Clock Delay [in microseconds]
  -P <port>                  Specify connection port.
  -F                         Override invalid signature check.
  -e                         Perform a chip erase.
  -O                         Perform RC oscillator calibration (see AVR053). 
  -U <memtype>:r|w|v:<filename>[:format]
                             Memory operation specification.
                             Multiple -U options are allowed, each request
                             is performed in the order specified.
  -n                         Do not write anything to the device.
  -V                         Do not verify.
  -u                         Disable safemode, default when running from a script.
  -s                         Silent safemode operation, will not ask you if
                             fuses should be changed back.
  -t                         Enter terminal mode.
  -E <exitspec>[,<exitspec>] List programmer exit specifications.
  -x <extended_param>        Pass <extended_param> to programmer.
  -y                         Count # erase cycles in EEPROM.
  -Y <number>                Initialize erase cycle # in EEPROM.
  -v                         Verbose output. -v -v for more.
  -q                         Quell progress output. -q -q for less.
  -l logfile                 Use logfile rather than stderr for diagnostics.
  -?                         Display this usage.

avrdude version 6.1, URL: <http://savannah.nongnu.org/projects/avrdude/>

However, if I had launched avrdude from cmd I would have got no "libusb0.dll missing" error and I would not have known what to do next.

This is what cmd outputs if libusb0.dll is missing:

c:\Avrdude>avrdude.exe
c:\Avrdude>

avrdude does not work and you do not know why. There is no error message.

Wow. That is awful. I've never run into that situation (missing dll on command-line application). I did not realize windows just black-holed the error!

DrAzzy:
I did not realize windows just black-holed the error!

It doesn't. That "functionality" comes with avrdude.

Attached is what Windows displays when a required DLL cannot be located.

NoDll.png

...and that is exactly the error dialog that is displayed...

avrdude.png

[quote author=Coding Badly link=msg=2209441 date=1430293557]
...and that is exactly the error dialog that is displayed...[/quote]
That is correct but you get that error "libusb0.dll missing" only if you make the mistake to click on avrdude.exe in Windows Explorer, expecting it will open like a Windows application.
If you simply open cmd and launch avrdude.exe from within cmd (as you should do) you get no error and you do not know what to do next.

See attached.

[quote author=Coding Badly link=msg=2209518 date=1430298363]
See attached.[/quote]
Yes, you are right. Launched from within cmd, avrdude.exe triggers another window that displays "libusb0.dll missing".

I have to acknowledge that before I did not use cmd but PowerCmd which does not throw any error.

The perils of not using Linux!

:grinning: