Simulink CAN Error Handling on C2000
We’re developing autocoded C2000 firmware using Simulink. Our application relies heavily on CAN, but we’ve been having intermittent failiures where the firmware continues to run but the C2000 CAN peripheral seems to stop operating. We see no CAN messages until we restart the controller.
We can replicate the issue by temporarily shorting the CAN lines together, which would seem to confirm the CAN controller is being put into an error state and never recovering. Reading the datasheet, this is intended behavior. However, we need our device to continue transmitting no matter what.
How can we either set the CAN peripheral to auto-recover from errors or force a reset when an error is detected?We’re developing autocoded C2000 firmware using Simulink. Our application relies heavily on CAN, but we’ve been having intermittent failiures where the firmware continues to run but the C2000 CAN peripheral seems to stop operating. We see no CAN messages until we restart the controller.
We can replicate the issue by temporarily shorting the CAN lines together, which would seem to confirm the CAN controller is being put into an error state and never recovering. Reading the datasheet, this is intended behavior. However, we need our device to continue transmitting no matter what.
How can we either set the CAN peripheral to auto-recover from errors or force a reset when an error is detected? We’re developing autocoded C2000 firmware using Simulink. Our application relies heavily on CAN, but we’ve been having intermittent failiures where the firmware continues to run but the C2000 CAN peripheral seems to stop operating. We see no CAN messages until we restart the controller.
We can replicate the issue by temporarily shorting the CAN lines together, which would seem to confirm the CAN controller is being put into an error state and never recovering. Reading the datasheet, this is intended behavior. However, we need our device to continue transmitting no matter what.
How can we either set the CAN peripheral to auto-recover from errors or force a reset when an error is detected? can, c2000, simulink MATLAB Answers — New Questions