2016-09-27 08:11 AM
Dear all,
I am using STM32F4 Discovery board and have some problems with using DMA on USART. The cause may be the unwanted left behind data inside USART RDR.Would you please kindly give me instruction how can I flush data out of RDR after finish receiving data?I am writing my own HAL driver for USART. #stm322016-09-27 08:24 AM
It has no real depth, read it until RXNE clears, it may keep returning the last value, but this is of no consequence and can be ignored.
2016-09-27 08:30 AM
Hello,
You may review USART example using DMA under this path: STM32Cube_FW_F4_V1.13.0\Projects\STM32F4-Discovery\Examples\UART\UART_TwoBoards_ComDMAFor more details refer to the in ''30 Universal synchronous asynchronous receivertransmitter (USART) '' section.Regards