2022-01-16 10:22 AM
Today i lost 4 hours to get UART DMA working, to find out CubeMx put some initialisation code in the wrong order.
I would like to tell ST employees about this.
This was generated by CubeMx, UART DMA did not work at all
MX_GPIO_Init();
MX_SPI2_Init();
MX_USART1_UART_Init();
MX_CRC_Init();
MX_DMA_Init();
MX_TIM16_Init();
After moving the DMA init before UART init, everything worked well.
/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_SPI2_Init();
MX_DMA_Init();
MX_USART1_UART_Init();
MX_CRC_Init();
MX_TIM16_Init();
/* USER CODE BEGIN 2 */
Solved! Go to Solution.
2022-01-16 02:31 PM
2022-01-16 11:21 AM
This is an issue with the previous CubeMX version that has been reported many times and fixed in the most recent version. Old projects must be fixed by editing IOC file directly.
2022-01-16 02:31 PM
2022-01-17 12:48 AM
I have the latest CubeIDE 1.8 . Sorry to not mention before my IDE version ...
My MX version is Version: 6.4.0-RC4 which is the latest one as far as i can see ?