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

51822, 52DK. UART. What should be the right RX and TX number?

my board uses 51822. I am using 52DK to debug it. I have plugged my board with 52DK as following:

RX -> p0.08

TX -> p0.06

My question is, when I init UART in code,  what should be the number for these 2 config of the pca10028.h:

#define RX_PIN_NUMBER
#define TX_PIN_NUMBER 

Currently I set up as this:

#define RX_PIN_NUMBER 6 
#define TX_PIN_NUMBER 8 

But I couldn't find any output. I use screen -L cu.usbm... 115200 -L open a UART window on my mac.

Please help me out, thanks a lot. 

Parents
  • Hi,

    If you are trying to use the interface MCU's VCOM functionality to forward the UART from the nRF51 IC to the PC, you should connect the TX pin of the UART on nRF51 to the TX pin on the nRF52 DK (P0.06), and the UART RX pin on the nRF51 to the RX pin on the nRF52 DK (P0.08). This is how the pins are connected between the interface MCU and the nRF52 chip on the DK. The nRF52 chip is not involved in this setup, you are simply passing the UART data to the interface MCU.

    The pin number used for UART in the nRF51 firmware can be whatever you want, as long as you connect it correctly to the nRF52 DK, and the pins are not used for other purposes (LEDs, buttons, etc).

    Best regards,
    Jørgen

Reply
  • Hi,

    If you are trying to use the interface MCU's VCOM functionality to forward the UART from the nRF51 IC to the PC, you should connect the TX pin of the UART on nRF51 to the TX pin on the nRF52 DK (P0.06), and the UART RX pin on the nRF51 to the RX pin on the nRF52 DK (P0.08). This is how the pins are connected between the interface MCU and the nRF52 chip on the DK. The nRF52 chip is not involved in this setup, you are simply passing the UART data to the interface MCU.

    The pin number used for UART in the nRF51 firmware can be whatever you want, as long as you connect it correctly to the nRF52 DK, and the pins are not used for other purposes (LEDs, buttons, etc).

    Best regards,
    Jørgen

Children
Related