bugAVR Downloader/UploaDEr - Bugs: bug #35590, avrdude make error when...


You are not allowed to post comments on this tracker with your current authentication level.

bug #35590: avrdude make error when programming ATmega8 through USBasp

Submitted by:  Marian <eagle22>
Submitted on:  Wed Feb 22 20:49:49 2012  
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Need InfoPrivacy: Public
Assigned to: NoneOriginator Name: Marian
Open/Closed: ClosedRelease: None
Programmer hardware: Device type: 

Mon Sep 2 18:23:13 2013, comment #3:

Timed out on requesting more information.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Mon Jun 11 09:13:03 2012, comment #2:

> About your first problem, I need more debugging information as I don't
> have an USBasp programmer handy to test myself.

Please attach the output of a -vvvv run to this bug report.
It seems nobody else can reproduce the problem so far.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Fri Jun 8 08:19:08 2012, comment #1:

Your second error is a usage error. It's not AVRDUDE's duty to
perform the tilde expansion (using ~ as an abbreviation for $HOME),
this is the job of your shell. However, the shell will only perform
tilde expansion if there is a white space in front of the tilde (or
the tilde is the very first character on the commandline). Thus,
programming works through

avrdude ... -U ~/path/to/file

because there is a space in front of the tilde.

But reading back by

avrdude ... -U flash:r:~/path/to/file:i

does not work since the shell does not expand the tilde (and there
is no directory named "~/path/to/").

Programming through

avrdude ... -U~/path/to/file


avrdude ... -U flash:w:~/path/to/file

would not work either.

The solution is to explicitly write $HOME:

avrdude ... -U flash:r:$HOME/path/to/file:i

About your first problem, I need more debugging information as I don't
have an USBasp programmer handy to test myself.

Joerg Wunsch <joerg_wunsch>
Project Administrator
Wed Feb 22 20:49:49 2012, original submission:

I still get error when I try to program microcontroller ATmega8 by using USBasp programmer It seems like it write first byte OK (it even light up my led Diode but do not blink as it should) but it gives me constantly error verification error, first mismatch at byte 0x0040
0xff != 0xac

Attached file output.txt show the result when I enter command:
sudo avrdude -c usbasp -P usb -p m8 -v -U ~/Programy/AVR/LED/Release/LED.hex 2> output.txt

I also get error while I try only to read from the device:

avrdude: writing output file "~/Programy/AVR/LED/Release/LED1.hex"
avrdude: error opening ~/Programy/AVR/LED/Release/LED1.hex: No such file or directory
avrdude: output file ~/Programy/AVR/LED/Release/LED1.hex auto detected as invalid format
avrdude: can't open output file ~/Programy/AVR/LED/Release/LED1.hex: No such file or directory
avrdude: write to file '~/Programy/AVR/LED/Release/LED1.hex' failed

But the path exist and it is created but only empty file

Attached file output2.txt show the result when I enter command:
avrdude -c usbasp -P usb -p m8 -v -U flash:r:~/Programy/AVR/LED/Release/LED1.hex 2>output2.txt

avrdude version 5.11 (also in avrdude 5.10) - did not try other versions

Marian <eagle22>


Attached Files
file #25119:  output.txt added by eagle22 (4kB - text/plain)
file #25120:  output2.txt added by eagle22 (3kB - text/plain)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by joerg_wunsch (Posted a comment)
  • -unavailable- added by eagle22 (Submitted the item)
  • -unavailable- added by eagle22
  • -unavailable- added by eagle22

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 6 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon Sep 2 18:23:13 2013joerg_wunschOpen/ClosedOpen=>Closed
    Mon Jun 11 09:13:03 2012joerg_wunschStatusNone=>Need Info
    Wed Feb 22 20:49:49 2012eagle22Attached File-=>Added output.txt, #25119
      Attached File-=>Added output2.txt, #25120
      Carbon-Copy-=>Added eagle22
      Carbon-Copy-=>Added -unavailable-

    Back to the top

    Powered by Savane 3.1-cleanup1