DMA and UART initialisations generated in wrong order
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.
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.
