cancel
Showing results for 
Search instead for 
Did you mean: 

How implement "bus_off" recovery management correctly for FDCAN?

OPoch
Associate

Hi!

I'm using STM32h7hal library. Stm32 FDCAN doesn't have "automatic busOff recovery" flag. Therefore i have to use HAL for bus off recovery sequence.

Is code below correct for recovery ?

HAL_FDCAN_Stop(hfdcan);

HAL_FDCAN_DeInit(hfdcan);

HAL_FDCAN_Init(hfdcan);

HAL_FDCAN_ConfigFilter(..);

HAL_FDCAN_Start(hfdcan);

Does anyone know a simpler way?

0 REPLIES 0