IMX287 AUART DMA Receive

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

IMX287 AUART DMA Receive

1,665 次查看
zhendezhang
Contributor I

Hello,Dear Support

   I am using IMX287 AUART for receive datas. I use DMA mode and set MXS_AUART_PORT_DMA_MODE on.

I set pdesc->cmd.cmd.bits.bytes = 23 forsed but the s->dma_rx_buffer_size is the PAGE_SIZE in function mxs_auart_submit_rx(struct mxs_auart_port *s).Then i send datas to Auart and in function mxs_auart_irq_dma_rx(int irq,void *context) i can receive 4 times which can also seen in function mxs_auart_rx_chars(struct mxs_auart_port *s) the variable count is 23. BUT the fifth i can't read any thing in function mxs_auart_submit_rx(struct mxs_auart_port *s).When i terminate my program i see Unhandled status 0x200400 which means receive fifo overrun INTR.

  I don't know what is the problem.

Do you have any idea? thank you very much.

标签 (1)
标记 (1)
0 项奖励
回复
1 回复

1,428 次查看
igorpadykov
NXP Employee
NXP Employee

Hi zhende

to avoid data loss one can consider hardware flow control described on

Hardware flow (RTS/CTS) on AUARTs on i.MX28 not working. 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复