FD CAN doesn't work properly
What is the best way to set up FD CAN in classic mode on stm32 nucleo h743zi board?
Currently, I'm using FDCAN with 16 Mhz frequency on the bus and I want to get 500kbit/s.
My settings are:
hfdcan1.Init.NominalPrescaler=2;
hfdcan1.Init.NominalSyncJumpWidth=1;
hfdcan1.Init.NominalTimeSeg1=13;
hfdcan1.Init.NominalTimeSeg2=2;
hfdcan1.Init.DataPrescaler=1
hfdcan1.Init.DataSyncJumpWidth=2;
hfdcan1.Init.DataTimeSeg1=13;
hfdcan1.Init.DataTimeSeg2=2;
Using osciloscope I see that one bit is sending in 13 ms time, when it should be in 2 us.
How to set things up properly?