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.

PROCESSOR-SDK-AM335X: 串口发送数据被打断

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3354

hello

我们现在在用红外串口收发数据,使用的是8250的驱动接口,用中断收发数据,对端是stm32,使用的串口空闲中断来检测am335x是否发送完数据,当检测到2个字符间隔大于一个固定值时,即认为am335x发送完毕!

现在遇到个问题:

am3354使用中断发送的时候,经常会被其他的中断打断,导致数据从xmit->buf搬运到红外串口芯片的FIFO里时产生不小的时延,让stm32误以为am3354发送数据结束了,最后造成数据丢失!

请问如何才能保证am3354的串口中断发送不被异常中断,造成时延增加?