Hello
Front end for HCS12X & MPC55xx is s little bit different when it comes to section definition.
So you cannot use the same notation to define a section on MPC55xx and HCS12X.
The problem here is that your variable size is smaller than 8 byte, so the compiler internally place them in sbss instead of bss.
You have two solutions here.
1- Define the variable in a sdata section.
Just change the section definition as follows:
#pragma push
#pragma section sdata_type ".APPL_16BIT_RAM" ".APPL_16BIT_RAM"
unsigned short a;
unsigned short b;
unsigned short c;
#pragma pop
2- Change the small data threshold setting for the project
If you are building from the IDE
- Open your project in the IDE
- Open the Target Settings dialog (Press ALT + F7)
- Switch to "+EEPC Target" Panel
- Set "Small Data" and "Small Data 2" to 0
- Click OK to close the dialog.
If you are building from batch add following options to your command line:
-sdatathreshold 0 -sdata2threshold 0
With this settings, the compiler will not use section sbbs, sdata, sdata2 and sbbs2 any more
I hope this helps.
CrasyCat