Enabling DMA mode aka UARTE0 in Nrf52832

Hi,

 I have interfaced nRF52832 module with a main MCU for UART communication. The data received at the uart_cb are 1 byte each. Which slows down the whole communication.

So my assumption is that UARTE0 is not enabled. Is there any document to refer to so that UARTE0 with EasyDMA gets enabled.

# Enable the UART driver
CONFIG_UART_ASYNC_API=y
CONFIG_NRFX_UARTE0=y
CONFIG_SERIAL=y

CONFIG_GPIO=y

# Make sure printk is printing to the UART console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_NRFX_TIMER2=y
CONFIG_UART_0_NRF_HW_ASYNC=y
CONFIG_RING_BUFFER=y
CONFIG_UART_0_NRF_HW_ASYNC_TIMER=2
 

Parents Reply
  • Some more observations:. Please note I am using peripheral_uart as my reference code.

    1. BaudRate set to 56000, UART_WAIT_FOR_RX set to 50 UART_BUF_SIZE set to 40 64 bytes of data takes 100mSec

    2. BaudRate set to 56000, UART_WAIT_FOR_RX set to 1000 UART_BUF_SIZE set to 80 64 bytes of data takes 1mSec

    Is there any reason behind the such a change in actual throughput?

Children
No Data
Related