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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,199 次查看
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 回复

414 次查看
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 项奖励
回复