Issue with CAN in loopback mode
Hello, i am using f446re nucleo board and have been facing a problem for a while now. I need to establish a loopback CAN transmission and the debug mode allows me to find a bug in the CAN Start function: HAL_ERROR 0x1 returned everytime i attempt.
here is the while loop i am talking about:
while((hcan->Instance->MSR & CAN_MSR_INAK) != 0)
{
if((HAL_GetTick() -tickstart) > CAN_TIMEOUT_VALUE)
{
hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT;
hcan->State = HAL_CAN_STATE_ERROR;
return HAL_ERROR;
}
}

