Help!Generating a minimum configuration with UART1 in DMA mode.The blocking version if(1) works, but with if(0) the DMA version nothing comes out. Configuration file for CubeMX attached.What am i missing?? /* Infinite loop */
/* USER CODE BEGIN W...
Please don't confuse "synchronicity" with blocking/non-blocking functions, specially when discussing UARTS!The root cause of this issue (if you step through the code in the debugger) is that the MX_DMA_Init(); must be called BEFORE MX_USARTx_UART_Ini...
Solved: The STM32Cube generates the following lines: /* Initialize all configured peripherals */
MX_GPIO_Init();
MX_USART1_UART_Init();
MX_DMA_Init();This simple example works simply by changing the orders of the init-calls to: /* Initialize ...
Posted on April 07, 2018 at 10:57You can find a full example how to do it here, and its tested and working on STM32F072CBT6.You should be able to easily port it to STM32F1xhttps://github.com/taipeiviking/USBdualCDCuartsSTM32F072CBT6