avr-gcc-list
[Top][All Lists]
Advanced

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

Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r")


From: E. Weddington
Subject: Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay]
Date: Thu, 12 Aug 2004 15:53:13 -0600
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Theodore A. Roth wrote:

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?

Agreed. Time to dig out grep....

Eric



reply via email to

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