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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,233件の閲覧回数
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..
ラベル(1)
0 件の賞賛
返信
1 返信

448件の閲覧回数
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 件の賞賛
返信