TI工程师,您们好,问题如题。我确认程序没有问题,都是用库做的,DMA进入中断后,用示波器观察,实际上只是发送了3个字节出去,剩余的2个字节还没发送就已经进行了中断。
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.
TI工程师,您们好,问题如题。我确认程序没有问题,都是用库做的,DMA进入中断后,用示波器观察,实际上只是发送了3个字节出去,剩余的2个字节还没发送就已经进行了中断。
Pleae understand that DMA completed does not means UART has completely send the data since DMA just move the data to the UART buffer. Then, it will take time for UART to shift the data out to the TX pin.
Generally, TI chip will go to sleep when no task is waiting. So, you may try to add a delay after DMA completed. Or, put the chip in PWRMGR_ALWAYS_ON or disable the POWER_SAVING mode for testing purpuse.