cancel
Showing results for 
Search instead for 
Did you mean: 

CAN module stops working in STM32F205 from power on to 1 hour with No can data feed

SA.21
Associate

HI,

  we are using STM32F205ZGT7. we are using CAN channel 1 for exchanging the information's in vehicles. During our in house testing from power on to about 1 hour the MCU CAN module stops receiving the data after long inactivity time of about 1 hour to 24Hour .  If we give the CAN data from the power on to with in few minutes it is working fine. we are getting bus error from the bus master tool which we use to simulate the CAN parameters. we couldn't see any errors in the live trace of CAN handler instance it is reading the CAN state as ready always

Below is our CAN init function generated from cubemx

void MX_CAN1_Init(void)

{

 hcan1.Instance = CAN1;

 hcan1.Init.Prescaler = 16;

 hcan1.Init.Mode = CAN_MODE_NORMAL;

 hcan1.Init.SyncJumpWidth = CAN_SJW_1TQ;

 hcan1.Init.TimeSeg1 = CAN_BS1_1TQ;

 hcan1.Init.TimeSeg2 = CAN_BS2_1TQ;

 hcan1.Init.TimeTriggeredMode = DISABLE;

 hcan1.Init.AutoBusOff = ENABLE;

 hcan1.Init.AutoWakeUp = ENABLE;

 hcan1.Init.AutoRetransmission = DISABLE;

 hcan1.Init.ReceiveFifoLocked = DISABLE;

 hcan1.Init.TransmitFifoPriority = DISABLE;

 if (HAL_CAN_Init(&hcan1) != HAL_OK)

 {

  Error_Handler();

 }

}

0 REPLIES 0