2019-10-08 06:58 AM
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?