I am trying to port code from cosmic to CodeWarrior 5.2 for HCS12 controller, when I am trying to use #pragma CODE_SEG PAGE_32 to make a function under section PAGE 32 ,only the section is getting updated in map file, starting address remains unchanged.
Hi @Aswin_5232,
You did not specify the part number of the MCU.
Use something like this instead:
Linker:
SEGMENTS
PAGE_32 = READ_ONLY 0x8000 TO 0xBFFF PAGE 32;
END
PLACEMENT
MyPage32Funcs INTO PAGE_32;
END
#pragma CODE_SEG MyPage32Funcs
void MyFunc(void) { ... }
#pragma CODE_SEG DEFAULT
Regards,
Daniel
Any support, information, and technology (“Materials”) provided by NXP are provided AS IS, without any warranty express or implied, and NXP disclaims all direct and indirect liability and damages in connection with the Material to the maximum extent permitted by the applicable law.
NXP accepts no liability for any assistance with applications or product design. Materials may only be used in connection with NXP products. Any feedback provided to NXP regarding the Materials may be used by NXP without restriction.