Hi Kevin,
You can possibly implement this in your bus fault handler.
For example, create a static variable to count the number of retry, and if it exceed the limit then signal to the embedded OS to kill the task. You might also able instruct the OS to restart the task, but it depends on the OS you use. Or potentially move the task into a suspended queue.
But whether the system can still function correctly after the task is killed and restarted is application dependent.
Regards,
Joseph
Sent from my iPad