C2000 eCAN bus-off condition
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (4)
Venkatesh Chilapur
el 5 de Feb. de 2019
1 voto
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
el 5 de Feb. de 2019
0 votos
Venkatesh Chilapur
el 6 de Feb. de 2019
0 votos
Hi,
Adding the below line of code should help!
HWREG(CANA_BASE + CAN_O_CTL) |= CAN_CTL_ABO;
Regards,
Venkatesh Chilapur
Donald
el 6 de Feb. de 2019
0 votos
Categorías
Más información sobre File Operations en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!