[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] fixed address for PROGMEM
From: |
Simon Han |
Subject: |
[avr-gcc-list] fixed address for PROGMEM |
Date: |
Wed, 5 Nov 2003 13:53:03 -0800 (PST) |
Dear avr-gcc-list,
Has anyone figured out a way to fix the address for PROGMEM?
Specifically, I would like to fix all the location for PROMEM to the end
of program flash (0x1C000 for atmega128). I have tried the same approach
as .bootloader
#define BOOTLOADER_SECTION __attribute__ ((section (".bootloader")))
Then,
use it in
int bootloader(void) BOOTLOADER_SECTION;
with
LDFLAGS = -Wl,-Map,$(PRG).map,--section-start=.bootloader=0x1E000
This forced bootloader code resided in 0x1E000.
Then I defined HIDDEN_SECTION as
#define HIDDEN_SECTION __attribute__ ((section (".hidden")))
I have tried to use HIDDEN_SECTION in two ways as follow
static const prog_uchar myarray[10] HIDDEN_SECTION = { some data... }
static const prog_uchar HIDDEN_SECTION myarray[10] = { some data... }
Both of them still gave me flash location at beginning of the memory
verified with .lst file.
Could someone give me a hand?
Thanks a million,
Simon
- [avr-gcc-list] fixed address for PROGMEM,
Simon Han <=
- Re: [avr-gcc-list] fixed address for PROGMEM, E . Weddington, 2003/11/06
- Re: [avr-gcc-list] fixed address for PROGMEM, Joerg Wunsch, 2003/11/06
- Re: [avr-gcc-list] fixed address for PROGMEM, Erik Christiansen, 2003/11/06
- Message not available
- Message not available
- Re: [avr-gcc-list] fixed address for PROGMEM, Simon Han, 2003/11/07
- Re: [avr-gcc-list] fixed address for PROGMEM, Erik Christiansen, 2003/11/11
- Re: [avr-gcc-list] fixed address for PROGMEM, Joerg Wunsch, 2003/11/12
- Re: [avr-gcc-list] fixed address for PROGMEM, Simon Han, 2003/11/13