HAL_CAN_Init() returns error after firmware migration from V1.8.0 to V1.8.4 on STM32F103C8T6
Hi,
i had a working STM32F1 (BluePill) CAN-Node with Cube firmware V1.8.0 before STMCube suggested me to automatically migrate the firmware to the latest V1.8.4.
Now HAL_CAN_Init() returns with an error which is caused by this code part within the Cube generated init function:
/* Wait initialisation acknowledge */
while ((hcan->Instance->MSR & CAN_MSR_INAK) == 0U)
{
if ((HAL_GetTick() - tickstart) > CAN_TIMEOUT_VALUE)
{
/* Update error code */
hcan->ErrorCode |= HAL_CAN_ERROR_TIMEOUT;
/* Change CAN state */
hcan->State = HAL_CAN_STATE_ERROR;
return HAL_ERROR;
}
}
obviously the "CAN_MSR_INAK" -bit in the MSR-register does not get set.
While testing the MCU is connected via TJA1050 tranceiver to a working can network.
Does anyone else encounter this problem ?
