How to configure interrupt for double bit ECC error or for any memory machine exception.

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

How to configure interrupt for double bit ECC error or for any memory machine exception.

Jump to solution
907 Views
kiranbhat
Contributor III

Hi

I am working on s12ZVCA192 controller. While studying data sheet for memory error. came to know about ECC error and MMU machine exception. I wanted to know that is there a way to configure interrupt for the Double Bit ECC error. Or if the machine exception is entertained from MMU can be used for interrupt generation. My aim is to reset the controller if any ECC double bit or Memory exception occurs. And is there any assembly instruction to reset the controller.

Labels (1)
0 Kudos
1 Solution
656 Views
RadekS
NXP Employee
NXP Employee

Hi Kiran,

I prepared for you simple example code of interrupt catcher (catch unexpected interrupts) and add here also example of Machine Exception ISR with MCU reset.

This code was tested on my side by double bit ECC error generated by cumulative write into Flash.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
657 Views
RadekS
NXP Employee
NXP Employee

Hi Kiran,

I prepared for you simple example code of interrupt catcher (catch unexpected interrupts) and add here also example of Machine Exception ISR with MCU reset.

This code was tested on my side by double bit ECC error generated by cumulative write into Flash.

I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
656 Views
kiranbhat
Contributor III

Tahnk you Radek

0 Kudos