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

Submitter:  Marian <eagle22>
Submitted:  Wed 22 Feb 2012 08:49:49 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Need Info Privacy:  Public
Assigned to:  None Originator Name:  Marian
Open/Closed:  Closed Release:  None
Programmer hardware:  Device type: 

Mon 02 Sep 2013 06:23:13 PM UTC, comment #3: 

Timed out on requesting more information.

Joerg Wunsch <joerg_wunsch>
Group administrator
Mon 11 Jun 2012 09:13:03 AM UTC, 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>
Group administrator
Fri 08 Jun 2012 08:19:08 AM UTC, 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

or

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>
Group administrator
Wed 22 Feb 2012 08:49:49 PM UTC, 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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-09-02 joerg_wunsch Open/ClosedOpen Closed
    2012-06-11 joerg_wunsch StatusNone Need Info
    2012-02-22 eagle22 Attached File- Added output.txt, #25119
        Attached File- Added output2.txt, #25120
        Carbon-Copy- Added eagle22
        Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code