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

Test UART using GPIO

Hi,

I want to test UART peripheral on nrf52840 by running example in path examples\peripheral\uart as it is.

Connection setup is:

nRF power source USB

nRF USB port connection

Default switch mode

Windows PC having USB to RS232 serial cable enumerating a COM port which its TX and RX pins connected to P0.06 GPIO TX pin, P0.08 RX GPIO pin on nrf52840 PDK

So while testing, most of the times some junk values are coming.

How to resolve this issue?

Parents
  • Hi,

    Just to check:

    1. Did you connect the ground wire from your USB-RS232 lead to a ground on the board?
    2. Did you connect TX to RX on the lead to the board and vice versa?
    3. Did you configure both ports for the same settings e.g. board rate, stop bits, parity, flow control etc?
    4. Finally does the USB-RS232 lead give a 3.3V or a 5V output, you'll need 3.3V.
Reply
  • Hi,

    Just to check:

    1. Did you connect the ground wire from your USB-RS232 lead to a ground on the board?
    2. Did you connect TX to RX on the lead to the board and vice versa?
    3. Did you configure both ports for the same settings e.g. board rate, stop bits, parity, flow control etc?
    4. Finally does the USB-RS232 lead give a 3.3V or a 5V output, you'll need 3.3V.
Children
Related