cancel
Showing results for 
Search instead for 
Did you mean: 

CAN frame's losses

Erwan03
Associate III

Hello all,

 

I am trying to receive CAN frames from a BMS, each frame is sent every 100ms and i am running the MCU's clock frequency at 180MHz (max speed) for Nucleo F446RE.

Unfortunately, i am missing some frames randomly and it makes my stateflow not working properly.

The CAN filter is set to 0 everywhere so all the frames from the BMS can be handled.

Does anyone know what i could do to solve the problem?

 

Thanks in advance

1 REPLY 1
SofLit
ST Employee

Hello,

Not sure what do you mean by "BMS", in next time please avoid to use the abbreviations so all here we can understand. Could you please give more details about this device and more specifically the HW? 

Start by modifying the bitrate settings. I propose the following:

CAN prescaler = 5

BS1  = 14

BS2 = 3

 

To give better visibility on the answered topics, please click on "Accept as Solution" on the reply which solved your issue or answered your question.