avr-gcc-list
[Top][All Lists]
Advanced

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

Re: [avr-gcc-list] placing a variable in flash


From: E. Weddington
Subject: Re: [avr-gcc-list] placing a variable in flash
Date: Mon, 22 Nov 2004 11:48:49 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Bernard Fouché wrote:

uint8_t *p=(uint8_t *)0x1FFF; ?

That places the variable in RAM. The user wants the variable placed in Flash (Program Space) according to the Subject of the post.

Eric


-----Message d'origine-----
De : address@hidden
[mailto:address@hidden la part de Royce & Sharal
Pereira
Envoyé : lundi 22 novembre 2004 06:46
À : AVR-GCC
Objet : [avr-gcc-list] placing a variable in flash


Hi,
How can one assign a predetermined address to a variable in code?

Say I place the Oscillator Calib. byte at 0x1fff. How can retreive it in my
program? I have to 'tell' GCC to look for it at (byte)location 0x1fff; which
means I need to have a variable(or const) located at 0x1fff.

How does one do this?

Thanks,
--Royce.


_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list




reply via email to

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