2020-08-17 07:38 AM
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