C2000 eCAN bus-off condition
Ältere Kommentare anzeigen
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
Akzeptierte Antwort
Weitere Antworten (4)
Venkatesh Chilapur
am 5 Feb. 2019
1 Stimme
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
am 5 Feb. 2019
0 Stimmen
Venkatesh Chilapur
am 6 Feb. 2019
0 Stimmen
Hi,
Adding the below line of code should help!
HWREG(CANA_BASE + CAN_O_CTL) |= CAN_CTL_ABO;
Regards,
Venkatesh Chilapur
Donald
am 6 Feb. 2019
0 Stimmen
Kategorien
Mehr zu File Operations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!