Hi,
Im using a MC9S12XET256 controller(mc9s12xe family).
i'm reading a particular value from d flash memory. For ex: lets assume the current value in the the address 0x10 _0000 is 23
on start up, i have the following piece of code
_startup()
{
clockinit()
flashinit()
main()
}
void main()
{
temp= *(NVM_Reprogramming * __far)0x100000;
}
i found that value is not read properly
When i inject a random delay, it is read properly.
_startup()
{
main()
}
void main()
{
uint16 i=0;
while(i<10000)
{
i++;
}
temp= *(NVM_Reprogramming * __far)0x100000;
}
Its reading value 23 correctly.
Is any delay required to read dflash data from memory? after reset ?
Though controller supported emulated eeprom we didnt opt for it?
Did anybody faced such hissues earlier?