This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nFR52 UART with DMA

Is there any guideline on how to setup and use the UARTE on nRF52 ?

  • what files to include in my project
  • how to initialise the peripheral
  • how to setup the DMA fifo
  • how to get an interrupt when the data are on the fifo

I'm currently using the nRF52 dev board PCA10040 and the application I'm working on is about receiving data over UART at 32kB/s. I want the UARTE to store the data in RAM and send an interrupt to the uC when the reserved space is full.

Any help appreciated.

Thanks, Luca

  • Hi,

    Unfortunately, neither app_uart.c nor app_uart_fifo.c take advantage of easyDMA. They only use DMA on single bytes. The only real advantages of these two libraries are a terminal-like interface (putc, getc), integration with functions like printf, and ease of implementation.

    If you need DMA you will have to use the UART driver which is documented here. My colleague has written an example and posted it here. Note that the example is written for SDK 11. Latest SDK is 12.1.0

Related