avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] Problems with char */arrays


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Problems with char */arrays
Date: Mon, 10 Dec 2007 17:08:32 +0100
User-agent: Mutt/1.5.11

As Taj Morton wrote:

> Hello,
> I hope this is the right list...

Not exactly, it's meant for the developers of avr-libc, rather than a
list for generic questions about AVR-GCC.  avr-gcc-list (on the same
list server) would have been more appropriate.

> Any ideas what might cause this?

Hard to say without seeing all the commands you invoked.  My first
guess would be that you forgot to copy over the contents of .data into
the ROM, e.g. you used an avr-objcopy command with -j .text but forgot
to also include -j .data.  That way, the initializer data for
initialized variables will be missing, and all your initialized
variables will show up with 0xff in them (as that's the pattern of the
uninitialized ROM).

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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