C2000 eCAN bus-off condition
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (4)
Venkatesh Chilapur
le 5 Fév 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
le 5 Fév 2019
0 votes
Venkatesh Chilapur
le 6 Fév 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
le 6 Fév 2019
0 votes
Catégories
En savoir plus sur File Operations dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!