Hello
constant addresses specified in the ANSI C source code are considered as logical addresses for the compiler.
Rather that defining the variable as:
you have to use the corresponding logical address:
If you are uncertain on how to convert global into logical addresses, there is a tool
{Install}\prog\hcs12xadrmap.exe which can help you to evaluate the corresponding logical address.
Just put the Global address in Global field and the corresponding address will be displayed in the Logical and XGATE edit box.
CrasyCat