Hello. We are using the Hercules RM48L952ZWT. If we have a critical software error, is there a HalCoGen function call to force a hard STOP/HALT of the processor?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello. We are using the Hercules RM48L952ZWT. If we have a critical software error, is there a HalCoGen function call to force a hard STOP/HALT of the processor?
Tammy,
The CPU continues to fetch instructions on each clock cycle unless it goes to an IDLE state. However, it is certainly possible to implement a trap (e.g. while(1){}). This trap will stop sequential code execution but will still respond to interrupts. (Interrupts can also take the device out of the IDLE state.) Also, autonomously running code (e.g. NHET) will continue to run in this case.
I think the bigger context for answering the question is to define how you know that you have a critical software error. The processor responds to Undefined Instructions as well as prefetch and data aborts. These exceptions are indicative of a critical error, BUT they are not comprehensive.
Best Regards,
Kevin Lavery