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.
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
tks