2024-07-04 07:37 AM
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
2024-07-04 08:13 AM
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