how to put a source into a specific address range(MPC5746R)

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

how to put a source into a specific address range(MPC5746R)

1,230 次查看
allenlw
Contributor III

We can use #pragma in 16bit chip(like MC9S12XET256) to achieve this goal, define a ROM sector in prm file, then use #pragma CODE_SEG to put a source file into a specific address range.

I konw we can define a ROM sector in pl file(MPC5746R), but is there a similar command like #pragma CODE_SEG???

Thank you for your answer.

2 回复数

1,081 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,

I suppose you use S32 Design Studio with GCC compiler. In this case, there is no such command. Only possibility is create your own section in linker file and place the code into this section.

Reagrds,

Martin

1,081 次查看
allenlw
Contributor III

tks

0 项奖励
回复