Other Parts Discussed in Thread: AM2634, SYSCONFIG
Tool/software:
Hi
I noticed the MCAN initialisation sometimes hangs.
The example used is the sdk one named canfd_loopback_interrupt and the devboard is a LP-AM263. Sdk is 9.2.0.56.
The hang happens in this call once the interrupts enabled:
It is not easy to reproduce, will not happen with loopback enabled!
I noticed two possible reasons:
1. when the bus is overwhelmed (there is a CANOpen slave node which broadcasts but since there is no ACK yet the bus is full with retries):
This is a frequent case since the AM2634 is the master of the cluster, he will send ACK once it starts but cannot start if something is broadcasting like nuts on the bus. Which is also frequent since simple sensors wake up much faster than the AM2634 does.
2. I did send a CAN frame from AM2634 which had no ACK (the cluster was unpowered) thus probably the bus was full load from AM2634 retry.
This can be related with the fact that the MCAN hw (or stack?) does not fully resets when MCAN reset is called or power button is pressed and on restart gets his own interruptswhich somehow overwhelms the system?
More on this on the other thread: https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1413652/mcu-plus-sdk-am263x-mcan-filters-does-not-reset-on-restart-using-no-filters-disables-all-can
If the two cases have the same solution feel free to unite them.
Best regards,
Barna Csenteri