How implement "bus_off" recovery management correctly for FDCAN?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-10-08 6: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?
Labels:
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
