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.

am335x uart串口发送问题



现象:现在是485发送数据的时候,最后一个字节没有发送出来。后面必须加适当的延时。(这个延时是必须的吗?)

问题:判断完串口的发送标志位后,最后一字节数据实际还没发送完成。那这个判断发送完成的点,不准确吗?

while (UART_LSR_THRE != (serial_in(up, UART_LSR) & (UART_LSR_THRE | UART_LSR_DR)))

请问一下:有没有遇到类似的问题,求指导。