Skip to main content
GS1
Senior III
Mar 31, 2021 10:30 AM UTC
Solved

SMT32CubeMX Can-Setup STM32F446 Auto Retransmit Flag mismatch between Cube and generated code

In CubeMX the name for the Automatic Retransmission of CAN-Messages is named:

"NO-AUTOMATIC Retransmission"and is set to "DISABLE"

When reading this I interpreted it as: Automatic Retransmission is done if set to DISABLE

In the generated code however the corresponding setting is:

hcan1.Init.AutoRetransmission = DISABLE;

Which leads to "no Automatic retransmission" and therefore to missing messages in case of high busload !!!

Please correct the wording in STMCubeMX so other users are not falling into the same problem.

BR GS

This topic has been closed for replies.
Imen.DBest answer
ST Technical Moderator
Mar 31, 2021 11:25 AM UTC

Hi @GS@S​ ,

I advise you to update and use the latest release of STM32CubeMX v6.2.0 which contains the correct wording 

0693W000008yOaPQAU.jpg 

Please mark my answer as best by clicking on the "Select as Best" button if it fully solved your issue.  This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks

4 replies

ST Technical Moderator
Mar 31, 2021 10:49 AM UTC

Hello @GS@S​ ,

Which CubeMx and Cube HAL release are you using ?

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
Imen.DBest answer
ST Technical Moderator
Mar 31, 2021 11:25 AM UTC

Hi @GS@S​ ,

I advise you to update and use the latest release of STM32CubeMX v6.2.0 which contains the correct wording 

0693W000008yOaPQAU.jpg 

Please mark my answer as best by clicking on the "Select as Best" button if it fully solved your issue.  This will help other users find this solution more quickly.

Imen

In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
GS1
GS1Author
Senior III
Mar 31, 2021 12:42 PM UTC

I am already using Version 6.2.0!

However the project was created with FW_F4 V1.24.1. The missing CAN messages were detected now after the project is released to customers already.

Ok, and after updating the HAL release FW_F4 V1.24.1 to V. 1.26.0 the wording now is correct.

I am always careful when changing to new releases of HAL, because I encounter too often that problems arise with new releases which I often can't see in the fist place...

Did not think the HAL release would change the behaviour of Cube Setup menu entries...

Thank you for the support.