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.
Dear Champs,
I am asking this for our customer.
If CPU has error itself during initialization or run time like fail to use ALU or any of the units inside C28x, will there be a triggered illegal ISR or any error that the user can be aware of?
Wayne Huang
Hi Wayne,
There is no HW mechanism in CPU to detect that. It may eventually get into ITRAP but not guaranteed. There are some other check which can be performed to catch such issue before running application. I am looping in Krishna to provide more detail on that.
Regards,
Vivek Singh
Hi Wayne,
There are two domains of operation that you are addressing here. One is the startup, which takes care of initialization, POST operations etc., The other is run time, where the user application takes over the system control.
The C28x_STL is designed to run at POST only and provides a diagnostic coverage of 60%. It tests various aspects of the CPU. if an error is detected in any subsystem, the C28x_STL captures and reports it. Please see details in the product release.
In addition, there are several safety mechanisms that are supported by the device. The details are provided in the safety manual. The notification methods vary depending on the safety mechanism used.
I hope this answers your question, please do not hesitate to ask more questions.
Regards,
Krishna
Dear Krishna,
For run-time, the user can leverage the safety mechanism to handle CPU errors.
Like this case, to detect ALU error, the user can use CPU7 in the safety manual - 6.2.3 CPU Handling of Illegal Operation, Illegal Results and Instruction Trapping by using ITRAP and illegal ISR (vector 19) to handle this kind of error.
Is our understanding correct?
Wayne
Wayne,
CPU will only detect error when the instruction fetched is an illegal instruction. For faults in CPU, which will lead to error in calculation result, primary safety mechanism will be CPU1. For execution flow related faults, internal / external watchdog timer will be helpful to detect faults.
Han