Hi I am trying to init the serial on the nRF52840 Dongle but there are some defines missing in the boards/pca10069.h
I run this on the nRF52840 DK and it works fine.
NRF_SERIAL_DRV_UART_CONFIG_DEF(m_uart0_drv_config, RX_PIN_NUMBER, TX_PIN_NUMBER, RTS_PIN_NUMBER, CTS_PIN_NUMBER, NRF_UART_HWFC_ENABLED, NRF_UART_PARITY_EXCLUDED, NRF_UART_BAUDRATE_115200, UART_DEFAULT_CONFIG_IRQ_PRIORITY);
#define RX_PIN_NUMBER 8#define TX_PIN_NUMBER 6#define CTS_PIN_NUMBER 7#define RTS_PIN_NUMBER 5#define HWFC true
So add corresponding definitions?
Are thy the same ? Or are there different numbers needed.
You would have to look at the schematics and/or manuals to determine that.
The nRF52 itself is very flexible on where stuff can be routed ...
There is no UART to USB bridge on the nRF52840 Dongle (the Segger debugger chip is used for that on the Development Kits), and therefore there is no default UART pins.
You can use any pins for the UART peripheral, but it is recommended to stay away from the pins marked "low frequency I/O only" in the ball assignment documentation.
Also make sure that you choose some pins that is not used by other peripherals/components on the dongle, for instance P0.06 and P0.08 is used for LEDs.
If you are communicating with a PC, you can also setup the dongle with USB CDC ACM to send data through virtual USB COM port. There is an example available in the SDK.
Thanks, Ill use that instead.