From ada571ecb8528e57003e1f878e224ab230920b33 Mon Sep 17 00:00:00 2001 From: BIGTREETECH <38851044+bigtreetech@users.noreply.github.com> Date: Mon, 6 Jun 2022 22:59:18 +0800 Subject: [PATCH] stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550) Signed-off-by: Alan.Ma from BigTreeTech --- src/stm32/fdcan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/stm32/fdcan.c b/src/stm32/fdcan.c index 63b1659e..aeb6eced 100755 --- a/src/stm32/fdcan.c +++ b/src/stm32/fdcan.c @@ -303,8 +303,6 @@ can_init(void) if (SOC_CAN == FDCAN1) FDCAN_CONFIG->CKDIV = 0; - /* Disable automatic retransmission */ - SOC_CAN->CCCR |= FDCAN_CCCR_DAR; /* Disable protocol exception handling */ SOC_CAN->CCCR |= FDCAN_CCCR_PXHD;