mƎALLEmBest answer
ST Technical Moderator
June 20, 2024
Hello,
Not sure I understood well your issue. Each board having the same firmware but behave differently?
Also you are using an RTOS and this complicates the analysis. May be you need to test without RTOS.
Meanwhile, I have one comment regarding the bitrate config and mainly regarding these parameters:
hfdcan1.Init.NominalPrescaler = 256;
hfdcan1.Init.NominalTimeSeg1 = 2;
hfdcan1.Init.NominalTimeSeg2 = 2;
To me these are bad parameters and need to be changed:
TSEG1 and TSEG2 need to be increased as much as possible and decrease the prescaler as much as possible to fit your CAN bitrate where the sample point is at (70% to 80%) of the bit time. TSEG1 =~ (70% to 80%) (TSEG1+TSEG2 )
To give better visibility on the answered topics, please click "Best answer" on the reply which solved your issue or answered your question.
