Hi
How to reset mcu by Illegal address reset? Does the address is unique?
I can reset the mcu,but the ILAF is not correct!
I want to check the mcu whether reset by illegal address accesss by reading ILAF.
MCU type:9s12xeg128
Please give me a example?
Thank you very much!
Jason
Solved! Go to Solution.
Wrong community, S12XE is 16bits.
You didn't mention operating mode. ILAF won't work in expanded modes. In single chip modes smth like this should do:
volatile char c;
c = *(char* far)0xD0000; // unimplemented global address 0xD0000'G
Edward
Wrong community, S12XE is 16bits.
You didn't mention operating mode. ILAF won't work in expanded modes. In single chip modes smth like this should do:
volatile char c;
c = *(char* far)0xD0000; // unimplemented global address 0xD0000'G
Edward
Hi Edward
I am sorry for the wrong community.
Thank you for your help.
Jason
I don't know about this specific MCU but in general, any illegal address (i.e., an address where code cannot possibly reside) is good enough. So, if not sure, or your address map seems to be fully used, maybe JMP-ing to a port (e.g., PORTA) would trigger this.
Bad guess, Tony. Illegal address on S12(X) is unimplemented address. PORTA is implemented and thus jump to it is perfecly legal. MPU (memory protection unit) can be used to prevent r/w/x access to specific location, but it has nothing to do with ILAF.
Regards,
Edward