[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes.
From: |
Bob Cunningham |
Subject: |
[avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes. |
Date: |
Wed, 18 Sep 2013 17:50:05 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Firefox/24.0 |
URL:
<http://savannah.nongnu.org/bugs/?40061>
Summary: avrdude -U fails to save final FF bytes.
Project: AVR Downloader/UploaDEr
Submitted by: bobc
Submitted on: Wed 18 Sep 2013 05:50:04 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Originator Name: BobC
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
I wanted to preserve the original content of a borrowed ATmega328p Arduino
before overwriting it for non-Arduino use. I used both the Atmel Studio
utility and avrdude to obtain an image of the flash content.
Atmel Studio saved 32768 flash bytes to an Intel hex file.
"avrdude -p ATmega328p -c avrispmkII -P usb -U flash:r:flashSave.hex:i" saved
32750 flash bytes into an Intel hex file, 18 fewer bytes than Atmel Studio
saved.
The actual text file sizes were very different because the two programs use
different line lengths. I used avr-objcopy to convert them to the same line
length, then compared them using diff.
Comparison of the files showed that avrdude failed to save the highest 18
bytes of flash, all of which were FF.
Both files contained identical information up to that point.
I next tried "avrdude -p ATmega328p -c avrispmkII -P usb -t", and at the
prompt entered "read flash 0 32768", and the upper 18 bytes were shown
correctly.
So avrdude "read" is able to read the full flash content. Then why does "-U"
fail to save the last 18 "FF" bytes to the output hex file?
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?40061>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes.,
Bob Cunningham <=
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Joerg Wunsch, 2013/09/18
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Bob Cunningham, 2013/09/18
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Bob Cunningham, 2013/09/18
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Joerg Wunsch, 2013/09/18
- [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Bob Cunningham, 2013/09/18
- Re: [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Joerg Wunsch, 2013/09/18
- Re: [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Simone, 2013/09/18
- Re: [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., René Liebscher, 2013/09/18
- Re: [avrdude-dev] [bug #40061] avrdude -U fails to save final FF bytes., Joerg Wunsch, 2013/09/18