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

RF52840 Two instances of UART/UARTE

Hi,

I have just started using the Nordic SDK (nRF5_SDK_15.2.0_9412b96) and am developing a low power application for a custom PCB using the rf52840.

I am developing using Segger on the PCA10056 development board initially.

Similar support queries seem to reference older versions of the SDK and/or replace files in the SDK itself.

The starting point was example: examples\ble_peripheral\ble_app_uart.

I would like to add a second instance of a serial interface (UART/UARTE).

The first instance will remain attached to the BLE.

The second instance will be connected to a device on the PCB.

Do any SDK files need to be modified to allow two instances to run in a low power application or have the issues (UART drawing two much current) been corrected in SDK 15?

Is the BLE example code using UART or UARTE and how is this determined by looking at the example code?

Will I need to include any other SDK files in the project because of switching to 2 instances, or are the files included by the example sufficient?

What changes do I need to make to the sdk_defn.h?

I do not need to use DMA.  Is it preferable to use UART or UARTE and what is the advantage of one over the other (aside from DMA)?  Is this in the documentation?

Does the BLE example code need to be modified when a second UART/UARTE is used by the application, or is it sufficient to only add new code for the second UARTE for the application?

Should the second UARTE use the same interface (APP_UART_FIFO_INIT) as the BLE example to initialise the UARTE?

Which include files are needed by the new application module?  Currently I have:

#include "nordic_common.h"
#include "nrf.h"
#include "bsp.h"
#include "app_error.h"
#include "app_timer.h"
#include "app_uart.h"
#include "nrf_uarte.h"
#include "nrf_drv_timer.h"

The application module is also using a timer, hence the inclusion of the timer include files.

Many thanks for any help you can offer.

Thanks

Dermot

Parents Reply Children
Related