This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

UART EASy DMA api calls

SD140

nrf52833, custom application based BLE Central Uart Project.

We would like to try the UART DMA functions available in Soft DEvice, s140_nrf52_7.2.0.

I have not found an example project to reference, or the set of functions calls to issue Tx, and Rx routines.

Also, I did read about other cases where the use of UART DMA may cause some power use problems, if

the UART was not handled properly when the nrf52833 goes into pwer save mode.

Thanks,

Dan

  • Hi Dan,

    The UART/UARTE is completely independent from the SoftDevice, so there is no need to consider that in this regard (unlike some other peripherals which must be used via SoftDevice APIs). However, the nRF5 SDK includes drivers for the UART/UARTE peripheral, which I suspect is what you are interested in.

    You can refer to the UART Example for a simple example of how to use the UARTE peripheral. As you want to use DMA, you want to use the UARTE peripheral. This is automatically selected when you specify what you want to use DMA by for instance setting UART0_USE_EASY_DMA to 1 in sdk_config.h.

    To ensure low power consumption you can disable the UART when not needing it, and enable it again afterwards.

Related