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.
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
Tahnk you Radek