This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LS0714: SCI via DMA message overwritten by regular sciSend function

Part Number: TMS570LS0714


I have two ways of sending UART data from MCU to PC: one uses the standard TI SCI driver (sciSend function), and another one uses DMA. However, if I send a message using the DMA function and shortly after another message using the standard sciSend, the DMA UART message never appears. Is there a way I can send messages using DMA and sciSend and ensure that both types of writes will successfully complete and not overlap or cancel each other?

  • Lana,

    Do you use the DMA for other transfers as well? If not, then the CPU can check if the DMA is "Busy" doing the transfer and if so, wait for the DMA transfers to complete before sending its own data.

    It is not typical for both DMA and the CPU code trying to use the same hardware resources such as a UART port. Is it possible for you to use an alternate UART port for one of the two? The LS0714 does support two UART interfaces.

    Regards,
    Sunil