STM32F446RE: CAN hcan->State is always at listening state
Hello all,
I am working on a ECU system and using CAN protocol to communicate with peripheral.
The MCU i am using is a STM32F446re. I have a problem when trying to execute "HAL_CAN_Init(&hcan1)" function.
Indeed, the line "hcan->State = HAL_CAN_STATE_READY;" in this function, the State value becomes "HAL_CAN_STATE_LISTENING", "HAL_CAN_STATE_READY", although my PCB is link to the CAN bus.
Does anyone know how to fix it?
