CAN Setting Mistake in CubeMX v4.26.0
I am developing under STM32F4 platform. After migrating from v1.0 to v1.0 firmware, which involves a major change in CAN API, I found there's a mistake in the CubeMX CAN setting options:
The generated code relating auto retransmission changed from
hcan1.Init.NART = DISABLE;�?�?�?
to
hcan1.Init.AutoRetransmission = DISABLE;�?�?�?
However, the setting option in CubeMX is still NART, which is the inverse of Auto-Retransmission. This option name is very misleading and caused my robotics application that requires a high frequency CAN transmission fail randomly. I found this after catching a ALST (Arbitration Lost Error). Please update the cubemx software to change this setting name.
#can-bus #cubemx-4.26