cancel
Showing results for 
Search instead for 
Did you mean: 

CAN Rx Interrupt cannot be reactivated due to LOCKED using HAL_CAN during Tx in Background

JSerr.441
Associate

 We use HAL_CAN_Transmit in the application. If during the call of this function a CAN Rx Interrupt happens, in the function void HAL_CAN_RxCpltCallback(CAN_HandleTypeDef* opt_canHandler) the HAL_CAN_Receive_IT fails as the CAN is is still HAL_LOCKED. We have disabled the CAN Interrupt during the Tx process, but as we Need a large timeout on the TX because a high bus load, then we get a FOV Fifo overrun failre on RX. Is it possible to just unlock the CAN in the Interrupt or is the only solution to use Tx also in Interrupt? Can a Rx Interrupt Interrupt an Rx Interrupt? Many thanks for the help, Jaume

0 REPLIES 0