Define a long value to be stored in RAM address on MCF52223 with CW 6.3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Define a long value to be stored in RAM address on MCF52223 with CW 6.3

1,263 Views
JimMcP
Contributor I
I want to define a particular long value to be stored in a particular RAM address. I have a value called flash_process. I need the bootloader code and program code to access this value at the same RAM address. The bootloader code will access the first 4096 of flash. The program flash code will start at  flash address 4096 .


I want to define a function to be stored at a particular flash address. Such as main() function (main.c).


Is this a more defined help file to better explain for manipulating the link (.LCF) file  and  to better explain the different pragma  definitions.. ?

I am using CodeWarrior 6.3 with the MCF52223 microcontroller (256k flash, 32k ram)..

Thank you,

Message Edited by J2MEJediMaster on 2007-04-12 10:26 AM

Labels (1)
0 Kudos
1 Reply

344 Views
CompilerGuru
NXP Employee
NXP Employee
Have a look into this thread:

http://forums.freescale.com/freescale/board/message?board.id=CWCOMM&message.id=4328

To access a specific memory location, you can use an expression like this in C:
"*(long*)4096"

To place something somewhere, see the other thread

Daniel
0 Kudos