Go Down

Topic: About running avrdude as a stand alone application (Read 5776 times) previous topic - next topic

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 http://download.savannah.gnu.org/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.


DrAzzy

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 http://download.savannah.gnu.org/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.
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

subway

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.

DrAzzy

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!
ATTinyCore for x4/x5/x61/x7/x8/x41/1634/828/x313 megaTinyCore for the megaavr ATtinies - Board Manager:
http://drazzy.com/package_drazzy.com_index.json
ATtiny breakouts, mosfets, awesome prototyping board in my store http://tindie.com/stores/DrAzzy

Coding Badly

#4
Apr 29, 2015, 09:39 am Last Edit: Apr 29, 2015, 09:46 am by Coding Badly
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.



Coding Badly


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


subway

...and that is exactly the error dialog that is displayed...
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.

Coding Badly


subway

See attached.
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.

Paul__B


Go Up