cancel
Showing results for 
Search instead for 
Did you mean: 

fdcan bit time config for classic frame STM32H563VGT6

DAUSILI
Associate II

Hi,
this is myproduct code STM32H563VGT6.

I am configuring the FDCAN2 module.
In particular the bit time using the filed below of the init structure of the HAL handler:
hfdcan2.Init.NominalPrescaler (NBRP+1 of register FDCAN_NBTP)
hfdcan2.Init.NominalSyncJumpWidth (NSJW+1 of register FDCAN_NBTP)
hfdcan2.Init.NominalTimeSeg1 (NTSEG1+1 of register FDCAN_NBTP)
hfdcan2.Init.NominalTimeSeg2 (NTSEG1+2 of register FDCAN_NBTP)
The protocol (and the ST manual rm481 at page 2542) specify that TimeSeg1 max value is 16, TimeSeg2 max value is 8.


In the example FDCAN_classic_frame_example I found this values:
hfdcan1.Init.NominalPrescaler = 1;
hfdcan1.Init.NominalSyncJumpWidth = 62;
hfdcan1.Init.NominalTimeSeg1 = 187;
hfdcan1.Init.NominalTimeSeg2 = 62;


Seems that these value are out of range.
I'm definitely missing something.

can someone explain the meaning of the parameters in the example "FDCAN_classic_frame_example" ?

Thank you.

Regards.

0 REPLIES 0