CAN_Error_Code doesnt really do anyting? (stm32f0xx)
Hi im trying to develop a bit of error management in my canbus driver.
I noticed there is an ErrorCode inside the canbus structure.
That error code could have any of these values:
But it turns out the hcan.ErrorCode is always HAL_CAN_ERROR_NONE, even if the canbus is not plugged to anything wich should give any of these:
//#define HAL_CAN_ERROR_EPV (0x00000002U) /*!< Error Passive */
//#define HAL_CAN_ERROR_BOF (0x00000004U) /*!< Bus-off error */
//#define HAL_CAN_ERROR_ACK (0x00000020U) /*!< Acknowledgment error */Am i missing something out here? maybe something needs to be enabled somewhere in the HAL to get errors¿