avrdude returns 53

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

avrdude returns 53 and does nothing else, no complaints, no other output, nada.

What is going on?

What does return code 53 mean?

 

I've searching the source for 53,

but no enlightenment.

 

BTW the command line is:

$ ls -l "$(which avrdude)"
-rwxr-xr-x 1 hennebry Administrators 465422 Jan 24 17:31 /c/Program Files (x86)/Atmel/Studio/7.0/toolchain/avr8/avr8-gnu-toolchain/bin/avrdude.exe
/c/Users/hennebry/Documents/projects/msi-lava-pc-util
$ avrdude -p m2560 -c atmelice -P usb -U flash:r:flash.bin:r -U flash:r:flash.
hex:i
/c/Users/hennebry/Documents/projects/msi-lava-pc-util
$ echo $?
53
/c/Users/hennebry/Documents/projects/msi-lava-pc-util

It's from an MSYS terminal on Windows 10.

A powershell also returns 53.

 

Another edit:

Just did a reboot.

No go.

No change if I disconnect the atmel ice.

This topic has a solution.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Fri. Jun 15, 2018 - 10:05 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hey!

I have the same issue with avrdude.

I think it has to do with the recent Windows 10 Update. Are you on Windows 10 as well?

 

Greetings Phil

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

I just did a stupid.

Since avrdude was part of the AS7 toolchain,

I tried "repairing" AS7.

Naturally, it 'repaired" the usb driver

so the avrdude could not use it even on a  good day.

 

I do not remember the incantations I needed for avrdude and usb.

If there is a FAQ, a sticky or a FM somewhere, I've not found it.

 

I am getting an error message now:

avrdude.exe: jtag3_open_common(): Did not find any device matching VID 0x03eb and PID list: 0x2141

 

Edit: AS7 can see and use the atmel ice.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Wed. Jun 13, 2018 - 09:38 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Wasn't that stupid as it helped us to understand the issue :)
So do you think that the update maybe "repaired" some USB drivers?
I'm using a Arduino nano counterfeit with a CH340 chip on it. Maybe windows overwrote that driver...
The interesting part is that you don't have to program to see an issue in avrdude: I'm using eclipse with avr plug in. I'm not able to open the avr dude preferences inside eclipse. I think the issue is that it somehow parses the output of avrdude and can not display it. Because there is no output...

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

It was stupid.

avrdude won't use any USB driver tolerated by AS.

Windows, AS, avrdude, USB.

It's going to be a long struggle

at the end of which, I still will

not know what error 53 is. 

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

skeeve wrote:
Edit: AS7 can see and use the atmel ice.
Atmel-ICE is a composite USB device (USB HID, DGI)

fyi, USB HID is a part of the forthcoming AVRDUDE 6.4 :

http://svn.savannah.gnu.org/viewvc/avrdude/trunk/avrdude/NEWS?revision=1425&view=markup

(lines 8 thru 14)

...

 

...

is there a libusb filter for USB HID devices?

 

Edits : typo, question

 

"Dare to be naïve." - Buckminster Fuller

Last Edited: Wed. Jun 13, 2018 - 10:09 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

"Dare to be naïve." - Buckminster Fuller

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

I thought jungo wasn't used anymore.

Also, how does one tell one USB thing name libusb from another?

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

Jungo superseded by WinUSB in Atmel Studio 7.0.1416 and subsequent.

AVRDUDE is via libusb; AVRDUDE 6.4 is optional via libhidapi.

No answer for the question.

 

"Dare to be naïve." - Buckminster Fuller

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

skeeve wrote:
Also, how does one tell one USB thing name libusb from another?
by USB VID and PID

via https://www.avrfreaks.net/forum/atmel-ice-avrdude-cannot-find-device#comment-1740521

 

"Dare to be naïve." - Buckminster Fuller

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

I'd not meant physical objects.

I meant all the things named libusb that one can download and install.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

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

"Dare to be naïve." - Buckminster Fuller

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

I found a solution to my problem with avrdude:

I had to disable the Windows 10 Driver Signature Force. (Don´t know how its called in english)

Do a F8 boot and then press "7".

After that I had to reinstall libusb0.dll

I used this installer for it: https://sourceforge.net/projects...

 

Hope that helps you as well!

 

Greetings Phil

Last Edited: Thu. Jun 14, 2018 - 01:59 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Well done!

phoggy wrote:
After that I had to reinstall libusb0.dll
from where?

Reason :

Zadig - USB driver installation made easy

http://zadig.akeo.ie/

...

The executable is digitally signed and the signature should state: "Akeo Consulting"

...

 

"Dare to be naïve." - Buckminster Fuller

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

phoggy wrote:
I used this installer for it: https://sourceforge.net/projects...
I downloaded and extracted,

but the readme's leave me not knowing what to do next.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

This reply has been marked as the solution. 
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

1. Disable the signed driver force thing from Windows

2. open the inf-wizard.exe in bin folder

3. follow instructions, select a usb device you want to override the libusb0 driver with.

4. select any location where to save the installer

5. go to that location and open x86 or x64 installer

6. install

7. reboot

 

I wrote that from my head, so I hope i forgot nothing :)

 

Greetings Phil

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

I can use avrdude now, though I still do not know what 53 means.

Other issues in another thread.

International Theophysical Year seems to have been forgotten..
Anyone remember the song Jukebox Band?

Last Edited: Fri. Jun 15, 2018 - 10:06 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I notice exitrc is an uninitialized local in main() yet main_exit does "return exitrc;" so there's plenty of potential for a return without it being set.