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

How to set up both UARTs and not use virtual Com port

We are currently developing on the PCA10056 as we wait for our development boards.  We would like to implement UART0 as a debug port, that we can output the log messages to, and use UART1 to communicate with an RS485 IC that will host a network interface.  I am having trouble finding an example that uses both UARTS without using the virtual COM port on SDK15.  I have four questions:

1. How should sdk_config.h be set in order to do what we are attempting?

2. How do we initialize two instances of the UARTE driver, then operate said uarts?

3. How do we redirect logging to a "normal" UART output?

4. It is my understanding that we can use any GPIO pins as UART output.  Is this accurate?

Related