avrdude-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avrdude-dev] FTDI flashing stops at different positions


From: Joerg Wunsch
Subject: Re: [avrdude-dev] FTDI flashing stops at different positions
Date: Wed, 18 Jul 2012 22:00:41 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

As Hannes Weisbach wrote:

> I guess when you read the flash back, avrdude reads back all 8k, but
> your hex file does not contain 8k of code.

Correct.  Avrdude strips all trailing bytes that are 0xff
(unprogrammed) when reading flash memory.  (When reading EEPROM, they
are kept.)

> My second guess would be that the difference from 8k binary data in
> the flash to the file size of 19204 bytes is caused by the Intel hex
> file format.

That would be a normal overhead: it must be more than twice the binary
size, as each byte is encoded in two characters, and there are
additional characters for the address, the record type, and the
checksum.

It makes most sense to read the memory contents back into a raw binary
file (-U fl:r:foo.bin:r), and convert the original load file also into
binary (avr-objcopy -O binary).  The compare both binary files, e. g
using cmp -l.
-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]