[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] initialized progmem data at fix address
From: |
Martin Bammer |
Subject: |
Re: [avr-gcc-list] initialized progmem data at fix address |
Date: |
Wed, 13 Apr 2005 18:35:30 +0200 |
User-agent: |
KMail/1.7.2 |
Hi,
use: #pragma yoursection="ANYNAME"
then in your makefile write:
ANYNAME_ADDRESS = 8000
LDFLAGS += -Wl,--section-start=.text=$(ANYNAME_ADDRESS)
Attention: gcc understands 8000 as BYTE address!
> hi,
>
> how can i create an initialized progmem data at fix address in program
> flash in C?
>
> ie.: bootloader version number:
> uint16_t version; // at address 0x1E800
>
> thanks: Andras
>
>
>
> _______________________________________________
> AVR-GCC-list mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/avr-gcc-list