Hello
I'm trying to use GPIO pins as UART on the nRF 52 DK rather than the default UART pins. How do I change the pin configuration?
I'm using nRF SDK version 17.1. 0
Hello
I'm trying to use GPIO pins as UART on the nRF 52 DK rather than the default UART pins. How do I change the pin configuration?
I'm using nRF SDK version 17.1. 0
Hello,
Typically this is controlled through boards.h in the projects.
For instance the nRF52-DK use the BOARD_PCA10040:
#elif defined(BOARD_PCA10040)
#include "pca10040.h"
So if you open pca10040.h you can find (these can be changed as you want, as long as they don't overlap with any other usage in the file):
#define RX_PIN_NUMBER 8
#define TX_PIN_NUMBER 6
#define CTS_PIN_NUMBER 7
#define RTS_PIN_NUMBER 5
#define HWFC true
Kenneth