davids5 commented on code in PR #11020:
URL: https://github.com/apache/nuttx/pull/11020#discussion_r1372150226


##########
arch/arm/src/imxrt/imxrt_serial.c:
##########
@@ -1373,6 +1373,7 @@ static inline void imxrt_serialout(struct imxrt_uart_s 
*priv,
 static int imxrt_dma_nextrx(struct imxrt_uart_s *priv)
 {
   int dmaresidual = imxrt_dmach_getcount(priv->rxdma);
+  DEBUGASSERT(dmaresidual <= RXDMA_BUFFER_SIZE);

Review Comment:
   To be clear the the test I am running is not based on default baud rate. it 
is running at 3Mpbs.  It uses hardware HS.
   
   Do you have gaps in the data coming in greater then 1 character time in a 
single message?
   
   Please  try and set the fifo back to 32 and the idle count 1, that will 
cause the DMA call back to be run more often and move the data from the fifo to 
the rx buffer.
   
   The loop is a DLAST to the TCD loop. 
   
   Once the port is open. [this should always be true
   
](https://github.com/apache/nuttx/blob/master/arch/arm/src/imxrt/imxrt_edma.c#L1249C2-L1249C42)
 Are you opening it once or opening and closing it?
   
   
   



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to