I have a problem with S12X and pointers at paged flash.
I am trying to read data from paged flash through a far pointer, but I am not able to do that using paged address.
The only way to read data is by using glabal address.
for example, I need to read data from paged address 0xFC8000.
unsigned int *far p;
unsigned int var;
p = (unsigned int *far)0xFC8000;
var = *p;
when I use the global address FC8000*4000+400000=0x7F0000
p = (unsigned int *far)0x7F0000;
var = *p
It works fine.
Does anyone know if it is possible to read data from flash using paged address instead of global address?