cancel
Showing results for 
Search instead for 
Did you mean: 

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

cBroadbo
Associate II

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

1 ACCEPTED SOLUTION

Accepted Solutions
Sara BEN HADJ YAHYA
ST Employee

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.

View solution in original post

5 REPLIES 5
Sara BEN HADJ YAHYA
ST Employee

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.

cBroadbo
Associate II

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

Thanks Sara!

Sara BEN HADJ YAHYA
ST Employee

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.

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