Hi,
We have some projects that use mc9s12dg256, mc9s12xdt512 and mc9s12xeq512 controllers.
In the ROM area 4000, are stored data that are device configuration parameters.
All data in ROM 4000 are accessible through pointers.
e.g.
004000'L 00 18 06 ED 0B 94 10 3B ....
the pointer for ROM 4000:
const struct Index_Struct
{
unsigned int General_Param;
unsigned int Keyboard;
unsigned int Fonts;
}* const Index = (const struct Index_Struct *) (0x7F4000);
The data are accessible through the pointer:
Fonts_Address = (*Index).Fonts;
Key_Address = (*Index).Keyboard;
According to the data sheet, if ROM 4000 is used, we have to compile the project with option: -OnB=b.
In this case the ROM 4000 is used only for constant data, no firmware is located.
Should we compile the project with option: -OnB=b?
I am asking because our projects use the ROM 4000 for constant data, we do not use this option but the projects works properly.
Thank you