On Thu, 12 Aug 2004, Bernard Fouché wrote:
Hi there.
Sorry to have polluted the list with that. I switched from binary
format to ihex format for avrdude and the problem just vanished! I'm
new to avr-gcc/avrduve, probably to use the binary format was stupid,
I suppose there were some kind of communication problems introduced by
the '\r'!
I found the problem when I understood that the presence on '\r\n' in
any text was perturbating the software, even when not referencing
flash memory.
I have this nagging feeling that you have exposed a bug in avrdude. I
suspect that you are using avrdude on windows that avrdude is opening
the binary file for reading using
fopen (file, "r");
when it should be using
fopen (file, "rb");
If memory serves, "r" and "rb" are the same on most Unix systems, but
have a subtle difference on Windows (end-of-line translation?). Any
windows experts care to comment on this?