[Top][All Lists]
[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
- [avr-gcc-list] printf_P + PSTR("\n\r") does not seem to work, however ("\r\n") is okay, Bernard Fouché, 2004/08/12
- Re: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem to work, however ("\r\n") is okay, Joerg Wunsch, 2004/08/12
- RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem to work,however ("\r\n") is okay, Bernard Fouché, 2004/08/12
- FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay], Bernard Fouché, 2004/08/12
- Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay],
Theodore A. Roth <=
- Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay], E. Weddington, 2004/08/12
- Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay], E. Weddington, 2004/08/12
- RE: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay], Bernard Fouché, 2004/08/13
- Re: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P + PSTR("\n\r") does not seem towork,however ("\r\n") is okay], Joerg Wunsch, 2004/08/13
- RE: FIXED: was avrdude prb [RE: [avr-gcc-list] printf_P +PSTR("\n\r") does not seem towork,however ("\r\n") is okay], Bernard Fouché, 2004/08/13