Skip to main content
cBroadbo
Associate II
January 12, 2022
Solved

STM32U5x GPDMA+USART Code Generation bug in STMCubeMX v6.4.0.

  • January 12, 2022
  • 5 replies
  • 1465 views

When I generate the code for a simple STM32U5x project with a USART configured and GPDMA configure for the USART TX and/or RX, the initialization code in MX_GPDMA1_Init() will be properly generated if I have my project to generate all the initialization code in main.c. However, if I change the project settings by enabling "Generate peripheral initialization as a pair of '.c/.h' files per peripheral", the resulting MX_GPDMA1_Init() found in gpdma.c will not contain any code, just comments.

The work around it to manually add the necessary initialization code into one of the /* USER */ sections in MX_GPDMA1_Init().

Hopefully this can be fixed in a not-too-distant future release.

Thanks,

Craig

This topic has been closed for replies.
Best answer by Sara BEN HADJ YAHYA

Hello @Community member​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

Thanks for your contribution.

Sara.

5 replies

Sara BEN HADJ YAHYA
ST Technical Moderator
January 12, 2022

Hello @Community member​ ,

Thanks for your feedback,

An internal ticket is submitted in order to fix this issue.

If you issue is solved, please close this post by clicking the "Select as Best" button. This will help other members of the community find this response more quickly :)

Thanks for your contribution and do not hesitate to raise any issue/ feedback.

Sara.

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.
cBroadbo
cBroadboAuthor
Associate II
January 12, 2022

Thanks Sara!

cBroadbo
cBroadboAuthor
Associate II
January 12, 2022

The work around is to manually add the necessary initialization code into one of the /* USER */ sections in MX_GPDMA1_Init().

Sara BEN HADJ YAHYA
ST Technical Moderator
March 7, 2022

Hello @Community member​ ,

This issue is fixed in STM32CubeMX latest release.

V6.5.0 is now available under this Link.

Thanks for your contribution.

Sara.

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.
cBroadbo
cBroadboAuthor
Associate II
March 7, 2022

That's great! Thanks for the heads-up Sara!