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: Theodore A. Roth
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 14:43:03 -0700 (PDT)

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?

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden


reply via email to

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