2009-05-04 03:04 AM
Uart with DMA transfer, problems with Printf
2011-05-17 04:11 AM
Hello,
if I send data over the UART with printf and after that start a dma transfer to the same uart, the last char of the printf(:) is not send. Can anybody help me? Her the code: /* Wait until DMA1_Channel 4 Transfer Complete */ while (DMA_GetFlagStatus(DMA1_FLAG_TC4) == RESET) { } DMA_Cmd(DMA1_Channel4, DISABLE); printf(''loop:'' ); DMAConfiguration(); DMA_Cmd(DMA1_Channel4, ENABLE); THX2011-05-17 04:11 AM
I get it:
// wait Uart is ready while (USART_GetFlagStatus(USART_MAXIM_NR, USART_FLAG_TXE) == RESET) { } Before starting the DMA transfer!