Hello
Find attached a technical note describing the different ways of defining paged variables on a HCS12X CPU. It also show the generated code in each case.
Note that this Technical note is part of the standard CodeWarrior for HCS12 V4.5 installation. You can find it in {Install}\Help\Pdf.
CrasyCat
hi,
i wanted to use the RAM area between 0x00_1000 to 0x0F_FFFF. So, can you explain me, how i can use that area. For that how do i need to define that memory location in .prm file. And also explain, how i can define those segments in data segment definiton., like #pragma DATA_SEG ..........
Hi Daniel,
i am defining the data segment similar way as your instruction, even then there is a warning message like the following one, when i am trying to access the paged RAM in FB page.
WARNING L1128: Cutting value _Range beg data member from 0xFB1000 to 0x1000.
can you explain me what this states and how it related to my issue.
Hello
In order to get rid of that message you have to let the startup code know you have global variables in banked memory.
In order to do that add option -D__FAR_DATA to your compiler command line.
Make sure to rebuild the start12.c file with that option activated.
That should do the trick.
CrasyCat