Question
STM32CubeMX bug? MX_DMA_Init() called in the wrong order.
I'm setting up the DMA to move received bytes from USART3 to a circular buffer.
But the DMA don't move the received data to the buffer.
The received data is received by USART3 (The DR contains the received byte and SR.RXNE is set to 1).
All I need to do to make it work is to edit in main.c. I move the call to MX_DMA_Init() to be called before MX_USART3_UART_Init().
Is this a STM32CubeMX bug?
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init(); // I moved MX_DMA_Init() up here. Then it works.
MX_USART3_UART_Init();
MX_TIM1_Init();
//MX_DMA_Init(); // DMA don't work if we call MX_DMA_Init() here
MX_DAC_Init();
MX_TIM14_Init();
MX_ADC1_Init();
MX_SPI3_Init();
MX_CRC_Init();
MX_I2C1_Init();
/* USER CODE BEGIN 2 */