I am working with a Nordic nrf52840dk using segge and sdk 16.
I am using the nordic UART example in examples/peripheral/uart.
The issue I am having is that my data being sent to this device can not be read from the nordic board.
Below is an example of the code going into my Putty terminal from my UART peripheral device.
This device has 4 wire connections RX,TX,CTS and RTS. My connections are listed below:
Note this is the default.
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
The first thing i tried was running the code with no change to see if app_uart_get(&cr) would pull this data. Unfortunately it did not. It does however, pull data that i type into the terminal.
What I want to do is to take this data from the UART(Sensor data) and store it as a variable for handling later on.
I which to know how I can pull this data from the serial connection.
Side note when the device (UART) is plugged in printing from putty does not run. If I unplug the device then printing works fine. Below is my main code (from example).
const app_uart_comm_params_t comm_params =
#if defined (UARTE_PRESENT)
#if defined (UART_PRESENT)
printf("\r\nUART example started.\r\n");
while (app_uart_get(&cr) != NRF_SUCCESS);
while (app_uart_put(cr) != NRF_SUCCESS);
if (cr == 'q' || cr == 'Q')
// Do nothing.
// This part of the example is just for testing the loopback .
For some reason today when I run it I get an error NRF_BREAKPOINT_COND.
The following comment is the system can only recover with a reset.
I've tried checked the wiring of the device today and…
Yes, that is correct. If you test the debug build you should see a sensible message in the log, and if there is problems with the logging you can inspect the info struct yourself. I think you will find…
I am happy to hear that it works