AnsweredAssumed Answered

[bug report] STM32F1 CAN HAL BUG: State locked in HAL_CAN_STATE_BUSY_TX_RX

Question asked by riabovas.justas on May 2, 2016
Latest reply on May 13, 2016 by FTITI.Walid
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.


Outcomes