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

Uart on custom Board.

hello we have custom board with Nrf52840.

i already test the uart code on nrf52840 dk..every thing is working great. my custom board is connect to the nrf52840 dk with debug connector. debugging is working great on custom board.

no connection of uart on the custom board. just simple debug connector from custom board to dk. is this possible that i can get uart data from my custom board to the pc through the debug connection ?

right now i am getting nothing. i thought may be some kind of routing from uart to debug connector. i have idea. please share your experience regarding uart on custom board experience.

thank you

  • The only thing available through the debug (SWD) connection is RTT. Just search in this blog for info on the Segger RTT implementation.

    For UART you need to have connected through at least 2 gpio for tx and rx. nRFgo Studio will present the uart as a virtual comm port through the USB connection for the dk board.

    The standard configuration for the UART is as below.

    #define RX_PIN_NUMBER  8
    #define TX_PIN_NUMBER  6
    #define CTS_PIN_NUMBER 7
    #define RTS_PIN_NUMBER 5
    #define HWFC           false
    

    You can find this same info in the online documentation here: infocenter.nordicsemi.com/.../vir_com_port.html

    As an FYI, most people seem to provide for a UART connection on custom boards since a minimum of 3 wire serial (Tx, Rx, Gnd) is required for Bluetooth SIG certification if you are running bluetooth on your board.

Related