C2000 eCAN bus-off condition
Show older comments
I am using the TI C2000 Simulink support package in 2018b. Occasionally in my environment the eCAN block detects errors (I assume TEC=128) and goes bus-off. Is there a way I can reset/clear this error without cycling power?
Thanks,
Don
Accepted Answer
More Answers (4)
Venkatesh Chilapur
on 5 Feb 2019
1 vote
Hi,
We provide custom code blocks under simulink coder->custom code->System Initialize using which you may initialize the ABO bit in the CAN_CTL Register to enable the 'Auto-Bus-On' feature. This will help recover the CAN bus from a bus off state.
Regards,
Venkatesh Chilapur
Donald
on 5 Feb 2019
0 votes
Venkatesh Chilapur
on 6 Feb 2019
0 votes
Hi,
Adding the below line of code should help!
HWREG(CANA_BASE + CAN_O_CTL) |= CAN_CTL_ABO;
Regards,
Venkatesh Chilapur
Donald
on 6 Feb 2019
0 votes
Categories
Find more on File Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!