Question
[bug report] STM32F1 CAN HAL BUG: State locked in HAL_CAN_STATE_BUSY_TX_RX
Posted on May 02, 2016 at 18:13
Hello,
I found that hcan->State was set to HAL_CAN_STATE_BUSY_TX_RX in HAL_CAN_Transmit_IT() when transmission has started. But successful transmission was not caught and CAN_Transmit_IT() was not called. After that hcan->State was not reset to HAL_CAN_STATE_BUSY_RX. So now HAL_CAN_Transmit_IT() cannot initiate a new transmission as it is marked as busy and in case of that hcan->State won't be reset. CAN driver is halted. I think ST should take more care with drivers as there are too many bugs what makes these drivers useless.