CubeMX problem when generate codes.
Hi,
DMA does not work, because the initialization order of the code generated by CubeMX is not correct.
DMA setting is not valid, because DMA is initialized after the fuction that uses DMA.
Please fix bugs.
Best regards,
incorrect order expample:
MX_GPIO_Init();
MX_SPI1_Init();
MX_SPI2_Init();
MX_SPI3_Init();
MX_UART4_Init();
MX_UART5_Init();
MX_USART1_UART_Init();
MX_USART2_UART_Init();
MX_USART3_UART_Init();
MX_DMA_Init();
correct order expample:
MX_GPIO_Init();
MX_DMA_Init();
MX_SPI1_Init();
MX_SPI2_Init();
MX_SPI3_Init();
MX_UART4_Init();
MX_UART5_Init();
MX_USART1_UART_Init();
MX_USART2_UART_Init();
MX_USART3_UART_Init();
My environments:
・STM32CubeMX Ver. 5.4.0
・STM32Cube MCU pacage for STM32L4 Series Ver1.14.0
・Windows10
・NUCLEO-L496ZG
