diff --git a/board/stm32h7/llfdcan.h b/board/stm32h7/llfdcan.h index 60dc0da7..0382e8ce 100644 --- a/board/stm32h7/llfdcan.h +++ b/board/stm32h7/llfdcan.h @@ -263,6 +263,7 @@ bool llcan_init(FDCAN_GlobalTypeDef *CANx) { void llcan_clear_send(FDCAN_GlobalTypeDef *CANx) { // from datasheet: "Transmit cancellation is not intended for Tx FIFO operation." // so we need to clear pending transmission manually by resetting FDCAN core + CANx->IR |= 0x3FCFFFFFU; // clear all interrupts bool ret = llcan_init(CANx); UNUSED(ret); }