I use hal can modul for STM32F091 MCU. The generated code in the function HAL_CAN_Init (HAL_StatusTypeDef HAL_CAN_Init(CAN_HandleTypeDef *hcan)) try to wake up CAN module from sleep to initialize mode by CLEAR_BIT(hcan->Instance->MCR, CAN_MCR_SLEEP)....