[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] big string into the ROM
From: |
drvdrv |
Subject: |
[avr-gcc-list] big string into the ROM |
Date: |
Mon, 10 Apr 2006 12:39:52 +0200 (CEST) |
Hi,
I wrote a program. Shortly, it dispalys text on LCD. The text (it is one
string) is stored in the ROM. It works fine but I faced with a problem
when I wanted to increase the size of the text. The max. size is 16kB.
Reading the list archives I found an other solution: first I compile only
the text (mytext.c) by gcc (not avr_gcc), then I convert it to pure binary
and then convert it to elf32-avr.
gcc -Wall -c -o mytext_gcc.o mytext.c
objcopy -I elf32-i386 -O binary mytext_gcc.o mytext.bin
avr-objcopy -I binary -O elf32-avr mytext.bin mytext1.o
It works. However in the mytext.o there is a .data and debugging it
with avr-studio it seems that all the string is loaded to data area so
there is no free space to any other variable.
How can I tell the linker not to put this string to data area but left it in
the ROM? Or put it from xxx ROM address?
I tried this way but it did not help:
avr-objcopy --rename-section .data=.progmem.data mytext1.o mytext.o
(and one more question: is there any way to modify avr-gcc so that
allows compile bigger string and gives only warning and not error?
Then I could decide this warning is important or not.)
thanks in advance.
br
drv
_______________________________________________________________________
9-én este héttől választási eredmények és tudósítások percről percre.
Weben www.origo.hu és mobilon origo.hu.
- [avr-gcc-list] big string into the ROM,
drvdrv <=
- Re: [avr-gcc-list] big string into the ROM, Daniel O'Connor, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, Keith Gudger, 2006/04/10
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/11
- Re: [avr-gcc-list] big string into the ROM, Ned Konz, 2006/04/11
- Re: [avr-gcc-list] big string into the ROM, Keith Gudger, 2006/04/11
- Re: [avr-gcc-list] big string into the ROM, drvdrv, 2006/04/13
- Re: [avr-gcc-list] big string into the ROM, Joerg Wunsch, 2006/04/13