Skip to main content
jalelboujezza
Associate
March 25, 2015
Question

Using Dma wich UART

  • March 25, 2015
  • 2 replies
  • 855 views
Posted on March 25, 2015 at 17:45

Hello,

i'm trying to send UART frame using DMA.

==> the problem is that the last bytes in the UART fifo not sended. and when i send the next frame i receive the last byte of the old frame.

 is there any mothod to clear the UART fifo before starting DMA transfer ???

why the last bytes in the fifo not sended ? 
    This topic has been closed for replies.

    2 replies

    jalelboujezza
    Associate
    March 25, 2015
    Posted on March 25, 2015 at 17:50

    I'm Using SPC5606

    Erwan YVIN
    ST Employee
    March 27, 2015
    Posted on March 27, 2015 at 10:59

    Hello ,

    Maybe you can use the register UARTSR.RMB (Release Message Buffer)

    After reading the data in the buffer you can clear by software.

       Best regards

                      Erwan