Max uart DMA limit

Hello Nordic Semi team, 

I am using the nrf52832 to send and recv data to a wifi module via uart. 

I am using the dma feature on the uart, and things work fine when RXD.MAXCNT < = 255. When RXD.MAXCNT > 255, there is a data loss on rx.  

void uart_recv_start(const void *buff_ptr, uint16_t size)
{
NRF_UARTE0->RXD.MAXCNT = size;
NRF_UARTE0->RXD.PTR = (uint32_t)buff_ptr;
NRF_UARTE0->TASKS_STARTRX = 1;
return ;
}

Is there a 255 byte limit on the RXD.MAXCNT? 

Kind regards, 

Hari 

Parents Reply Children
No Data
Related