AnsweredAssumed Answered

MC9S12XDT256 , Paged & Global address

Question asked by Eric_t d on Sep 12, 2013
Latest reply on Sep 20, 2013 by Eric_t d

Hi everyboby,

 

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;

controller crashes.

 

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?

 

Thank you

Nikos

Outcomes