AnsweredAssumed Answered

CAN Stuff Error - Acknowledge

Question asked by metzger.marco on Jul 23, 2015
Latest reply on Mar 25, 2016 by yemets.sergey
I have a problem with the CAN Interrupt.

My application is only listening, then I disconnect the CAN plug and get sometimes a CAN Stuff Error, this is ok, because it happens really.

I read out the error and acknowlege in the HAL_CAN_IRQHandler.

after reading the LEC bits are 0x00

only the Error Interrupt is not cleared -> ERRI is always 1. Therefore the CAN Interface generates always new interrupts and never comes back.

The only solution for the moment is to shut down the whole system by:
inside the ErrorHandler function.

Is there really no better solution?
I tried with HAL_CAN_DeInit() but this does not clear the ERRI bit.