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 cl...