mm9z1-638:machine exception handler question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

mm9z1-638:machine exception handler question

Jump to solution
1,445 Views
gumu
Contributor V

Dear Sir,

Recently, I encountered an issue in the project where an ECC error occurred while attempting to read EEPROM data. This led to triggering the Machine Exception callback function, and subsequently, the device rebooted. I would like to know if it is possible for the device to continue running without restarting after triggering the Machine Exception.

Tags (1)
0 Kudos
Reply
1 Solution
1,418 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @gumu,

The mm9z1-639 has the same core as the S12Z series.

Please have a look at this thread:

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Jump-to-Reset-vector-from-machine-exception...

 

Regards,

Daniel

View solution in original post

0 Kudos
Reply
3 Replies
1,428 Views
gumu
Contributor V

Dear Sir,

I read about machine exceptions in the S12ZCPU_RM_V1 documentation, and it state:

Machine exceptions are meant to signal severe system problems. Software is expected to re-initialize the system when a machine exception occurs. Unlike interrupts or software exceptions, a machine exception causes the CPU to not perform any stack operations, so it is not possible to return to application code by simply using an RTI (or an RTS)instruction

Does this mean that once a machine exception occurs, the system must be restarted? If so, how can the system recover from the ECC error triggered by EEPROM?

Thanks!

0 Kudos
Reply
1,419 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello @gumu,

The mm9z1-639 has the same core as the S12Z series.

Please have a look at this thread:

https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Jump-to-Reset-vector-from-machine-exception...

 

Regards,

Daniel

0 Kudos
Reply
1,383 Views
gumu
Contributor V

Hi @danielmartynek ,

Thank you! As stated in the manual, triggering a machine exception interrupt requires the system to be rebooted.

 

0 Kudos
Reply