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

UART communication between two boards

Hi,

I am trying to establish UART communication between two nRF52 Dev boards. I flashed both of them with UART peripheral example from 15.2.0 SDK and connected TX,RX and GND pins.

Here, I encountered a weird issue where the two way communication(two terminals are recording the data when I enter data on any one terminal) is taking place with only one connection (TX from one board to RX on another / Connecting RX of both connectors) and nothing is being displayed on terminals when TX on both boards are connected. Can anyone explain this?

Thank you.

Parents Reply
  • Hi.

    You are seeing this behaviour because of how the DK's are connected.

    The data being entered in the terminal will be forwarded via the segger chip on the DK to the nRF chip.
    Because you have connected both RX pins, both the nRF's will receive the data.
    When the UART application receives the data, it will process it and print the data. This is done by the nRF forwarding the data to your terminal via the segger chip and the TX line.

    That is why you are seeing the two way comunication. If you connect TX1 -> RX2 and TX2 ->RX1, you should see the data go into an endless loop between the two.

    Best regards,
    Joakim.

Children
No Data
Related