[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] printf not working, i'm linking the libs
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] printf not working, i'm linking the libs |
Date: |
Mon, 29 Mar 2004 10:05:41 +0200 (MET DST) |
Carlos Becker <address@hidden> wrote:
> fprintf(USART_stream,"sarasasa"));
> // THIS DOESN'T work.. all that's sent is 0xFF and a leading 0x00
That probably means your simulator doesn't properly includes the ROM
part that carries the .data initialization values. This also used to
be a problem with AVR Studio, but has been fixed in their recent
versions (AVR Studio 4.08+ together with the coff-ext-avr file
format).
Perhaps you could tell your simulator to initialize the ROM contents
from a hex or binary file, and only use the COFF file for obtaining
the debugging symbols? That way, no special precautions are required
on the simulator side. (VMLAB works that way.)
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list