stm32: Enable Automatic retransmission feature to avoid data loss caused by bus conflict for STM32G0B1 fdcan (#5550)

Signed-off-by: Alan.Ma from BigTreeTech <tech@biqu3d.com>
This commit is contained in:
BIGTREETECH 2022-06-06 22:59:18 +08:00 committed by GitHub
parent db5a4351a5
commit ada571ecb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -303,8 +303,6 @@ can_init(void)
if (SOC_CAN == FDCAN1) if (SOC_CAN == FDCAN1)
FDCAN_CONFIG->CKDIV = 0; FDCAN_CONFIG->CKDIV = 0;
/* Disable automatic retransmission */
SOC_CAN->CCCR |= FDCAN_CCCR_DAR;
/* Disable protocol exception handling */ /* Disable protocol exception handling */
SOC_CAN->CCCR |= FDCAN_CCCR_PXHD; SOC_CAN->CCCR |= FDCAN_CCCR_PXHD;