Cannot use UART1

Hello, I cannot use UART1, and I don`t know the reason for that.
I run the exercise: https://academy.nordicsemi.com/courses/nrf-connect-sdk-fundamentals/lessons/lesson-4-serial-communication-uart/topic/exercise-1-5/

using UART0, and it works fine. When I replaced UART0 with UART1, I could not receive or transmit any data.
The overlay, the prj.conf, and the output in case UART1 are attached.

I am using NCS version 2.9.0

This is the output in case UART1 and the LEDs didn`t toggle.

This is the prj.conf file:

Here is the overlay file:

Parents Reply
  • Hi,

    As I stated in one of my previous replies:

    Marte Myrvold said:
    The pins of UART0 are routed through the interface MCU on the nRF52840 DK, so this is the UART interface you can access through the physical port on the DK. If you want to use UART1, you must change the pins in the devicetree overlay so that UART1 uses the pins that are used by UART0. You must also change zephyr,console to UART1 in devicetree.

    The pins of UART1 are not connected to the USB connector on the DK, but the pins of UART0 are. In other words, you also need to change the UART1 node in the devicetree overlay such that it uses the pins that are originally used by UART0, i.e., the pins that are connected to the USB connector.

    Here you can see the default pins used by UART0 and UART1:

    UART0

    UART_TX

    P0.06
    UART_RX P0.08
    UART_RTS P0.06
    UART_CTS

    P0.07

    UART1

    UART_TX

    P1.02
    UART_RX P1.01

    Best regards,
    Marte

Children
No Data
Related