From 60c93c2210bf7e555c5b502bfc32fd2b2ba1176f Mon Sep 17 00:00:00 2001 From: Rakshita Date: Wed, 29 Jan 2025 15:31:21 +0530 Subject: [PATCH] fix: Disable retry for CAN-transmitted data in FOTA. - Resolved issue where FOTA retry count reduced unexpectedly (from 50 to 44-35). - Root cause: CAN transmission failures triggered delayed retries. - Solution: Disabled retry mechanism for CAN-transmitted data to maintain expected retry count. --- Core/Source/ivec_mcal_mcan.c | 3 +-- ivec_RTE/src/ivec_rte.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/Source/ivec_mcal_mcan.c b/Core/Source/ivec_mcal_mcan.c index 4fd7bfc..260bd96 100644 --- a/Core/Source/ivec_mcal_mcan.c +++ b/Core/Source/ivec_mcal_mcan.c @@ -37,7 +37,7 @@ static DL_MCAN_InitParams __gprv_xInitParams= { .txpEnable = false, .efbi = false, .pxhddisable = false, - .darEnable = false, + .darEnable = true, .wkupReqEnable = true, .autoWkupEnable = true, .emulationEnable = true, @@ -498,7 +498,6 @@ IVEC_McalCommonErr_e xMCAL_MCANDeInit(IVEC_McalCanHandle_s* pxCanHandle) /* Wait for power down to complete */ delay_cycles(16); - return commonMCAL_SUCCESS; } diff --git a/ivec_RTE/src/ivec_rte.c b/ivec_RTE/src/ivec_rte.c index 0af6eab..cf470a7 100644 --- a/ivec_RTE/src/ivec_rte.c +++ b/ivec_RTE/src/ivec_rte.c @@ -26,7 +26,7 @@ IVEC_EcuCANHandle_s g_xCanHandle; #define rteCONFIG_BASIL_u8 2 // UART Configuration -#define rteUART_PIN_SELECTION_u8 rteCONFIG_BASIL_BATTERY_SMART_u8 +#define rteUART_PIN_SELECTION_u8 rteCONFIG_BASIL_u8 uint8_t g_pu8UartBuffer[ecuUART_MAX_PACKET_LENGTH_u8] = {0}; volatile uint32_t g_u32CanId = 0x1FFFFFFF;