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
  • Hi,

    Is there a particular reason you want to use UART1 instead of UART0?

    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.

    Best regards,
    Marte

Reply
  • Hi,

    Is there a particular reason you want to use UART1 instead of UART0?

    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.

    Best regards,
    Marte

Children
Related