cancel
Showing results for 
Search instead for 
Did you mean: 

The calls to MX_DMA_Init and MX_USART2_UART_Init are generated in the wrong order. The DMA must be initialized first or the UART initialization silently fails to apply the proper configuration. There is no error but the UART doesn't work.

MScha.8
Associate II

STM32CubeIDE 7.0

Nucleo F401RE

I configured the board for USART2 DMA operations as in the UART_Hyperterminal_DMA example. The generated code called MX_USART2_UART_Init followed by MX_DMA_Init but this ordering does not work. The calls to set the DMA CR did not have any effect leaving the DMA configured improperly. Switching the order of the Init calls fixed the problem.

I am attaching the configuration file that generated the incorrect code.

2 REPLIES 2
MScha.8
Associate II

Attaching the configuration file that caused the incorrect code to be generated

Amel NASRI
ST Employee

Hi @MScha.8​ ,

Unfortunately this is a known regression issue faced when generating code with STM32CubeMX 6.3.0.

We wait for new release of the tool to fix it (@Khouloud OTHMAN​ to confirm about this​).

Internal ticket number: 112040 (This is an internal tracking number and is not accessible or usable by customers).

-Amel

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.