CubeMX & STM32G4xx & FDCAN - BUG in CubeMX
Hello,
I use CubeMX V6.13.0 (now the newest version).
I have find out a bug in the configuration wizzard from the FDCAN with the STM32G473.
When I chose:
FDCAN1, Clock Divider = "Divide kernel clock by 10"
FDCAN2, Clock Divider = "Divide kernel clock by 1"
Then start the FDCAN1 and start the FDCAN2, then the FDCAN2 works not with the correct bitrate.
The problem is: CubeMX does not know the µC has only one "Clock Divider".
See RM0440, Rev 8, at 44.4.37 (page 2011):
"Note: The clock divider is common to all FDCAN instances. Only FDCAN1 instance has
FDCAN_CKDIV register, which changes clock divider for all instances."
If I choice for FDCAN1 a other Clock Divider as by 1, the the bitrate calculation for FDCAN2 and FDCAN3 is bad.
Please fix this bug in CubeMx,
Thanks a lot.
Best Regads Markus
