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

 
 

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

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

Submitted by:  Marian <eagle22>
Submitted on:  Wed 22 Feb 2012 08:49:49 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: Need InfoPrivacy: Public
Assigned to: NoneOriginator Name: Marian
Open/Closed: Closed

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

Timed out on requesting more information.

Joerg Wunsch <joerg_wunsch>
Project 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>
Project 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>
Project 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>

 

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 02 Sep 2013 06:23:13 PM UTCjoerg_wunschOpen/ClosedOpen=>Closed
    Mon 11 Jun 2012 09:13:03 AM UTCjoerg_wunschStatusNone=>Need Info
    Wed 22 Feb 2012 08:49:49 PM UTCeagle22Attached 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-cleanup