Define a function be stored in a particular sector of flash.

cancel
Showing results for 
Search instead for 
Did you mean: 

Define a function be stored in a particular sector of flash.

917 Views
JimMcP
Contributor I
I want to define particular function to be stored at a particular flash sector. Or a particular c file to be stored at a particular flash sector. Example, (2K page) 2nd half of flash (start of 65 page==128K)....

// main.c
void foo(void)
{
.......
}


Thanks..
Labels (1)
0 Kudos
1 Reply

132 Views
SimonMarsden_de
Contributor II
Hi Jim

Someone asked a similar question a while ago. If you're using CodeWarrior, you can use the Linker Control File (LCF) to do this. Have a look at the following thread:

http://forums.freescale.com/freescale/board/message?board.id=CFCOMM&message.id=1578#M1578


In particular, the second and third posts in this thread gives some details which might be helpful.

Hope this helps


Simon
0 Kudos