Skip to content

Commit a3bcc70

Browse files
committed
doc: fix NCP sample UART pinout configuration
Make sample documentation match DTS configuration. Signed-off-by: Eduardo Montoya <[email protected]>
1 parent d83c952 commit a3bcc70

File tree

1 file changed

+23
-7
lines changed

1 file changed

+23
-7
lines changed

samples/ncp/README.rst

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,13 @@ The communication channel uses Zephyr's `UART API`_.
7777
ncs,zigbee-uart = &uart20;
7878
};
7979
80-
By default, Zephyr's logger uses ``uart20`` and the NCP sample communicates through the UART serialization using ``uart21``.
81-
The DTS overlay file configures ``uart21`` to be connected to the on-board J-Link instead of ``uart20``.
82-
As the result, Zephyr's logger ``uart20`` is available only through GPIO pins (**P1.08** and **P1.09**).
80+
By default, Zephyr's logger uses ``uart20``, and the NCP sample communicates through the UART serialization using ``uart21``.
81+
The DTS overlay file configures ``uart21`` to connect to the on-board J-Link instead of ``uart20``.
82+
As a result, Zephyr's logger on ``uart20`` is available only through GPIO pins (**P1.08** and **P1.09**).
8383

8484
The ``uart20`` pins are configured by devicetree overlay files for each supported development kit in the :file:`boards` directory.
8585

86-
.. group-tab:: nRF52840 and nRF5340 DKs
86+
.. group-tab:: nRF5340 DK
8787

8888
The serial device is selected in devicetree like this:
8989

@@ -93,9 +93,25 @@ The communication channel uses Zephyr's `UART API`_.
9393
ncs,zigbee-uart = &uart0;
9494
};
9595
96-
By default, Zephyr's logger uses ``uart0`` and the NCP sample communicates through the UART serialization using ``uart1``.
97-
The DTS overlay file configures ``uart1`` to be connected to the on-board J-Link instead of ``uart0``.
98-
As the result, Zephyr's logger ``uart0`` is available only through GPIO pins (**P1.00** and **P1.01**).
96+
By default, Zephyr's logger uses ``uart0``, and the NCP sample communicates through the UART serialization using ``uart1``.
97+
The DTS overlay file configures ``uart1`` to connect to the on-board J-Link instead of ``uart0``.
98+
As a result, Zephyr's logger on ``uart0`` is available only through GPIO pins (**P1.04** and **P1.05**).
99+
100+
The ``uart0`` pins are configured by devicetree overlay files for each supported development kit in the :file:`boards` directory.
101+
102+
.. group-tab:: nRF52840 DK
103+
104+
The serial device is selected in the following devicetree:
105+
106+
.. code-block:: devicetree
107+
108+
chosen {
109+
ncs,zigbee-uart = &uart0;
110+
};
111+
112+
By default, Zephyr's logger uses ``uart0``, and the NCP sample communicates through the UART serialization using ``uart1``.
113+
The DTS overlay file configures ``uart1`` to connect to the on-board J-Link instead of ``uart0``.
114+
As a result, Zephyr's logger on ``uart0`` is available only through GPIO pins (**P1.01** and **P1.02**).
99115

100116
The ``uart0`` pins are configured by devicetree overlay files for each supported development kit in the :file:`boards` directory.
101117

0 commit comments

Comments
 (0)