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

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

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

644 Views
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 Replies

495 Views
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

495 Views
allenlw
Contributor III

tks

0 Kudos