Question
CubeMX calls generated init functions for DMA and USART in a wrong sequence
If you generate code in CubeMX with enabled USART and DMA for TX line init functions will be called in a wrong sequence. Init function for USART is called before DMA init function but it does some setup for DMA. Since DMA init function enables bus clock that relates to DMA then all settings that were made in USART init function for DMA will be missed (all DMA register will be 0).
It works for CubeMX 5.4.0 and STM32L4 Discovery board.
