From cd2547cae2acd11d387f8870b401615876823eab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Thu, 7 Nov 2024 07:05:22 +0100 Subject: [PATCH 1/2] samples: peripheral: lpuart: Fix uart0 pins in nrf52840dk and nrf21540dk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Wrong pins were used for nrf52840dk and nrf21540 uart0 (console uart). Due to that debug configuration was not printing anything on that DK. Signed-off-by: Krzysztof Chruściński (cherry picked from commit 4b368235f6940181b5ab920f34a448ff2a4caf0b) --- samples/peripheral/lpuart/boards/nrf21540dk_nrf52840.overlay | 4 ++-- samples/peripheral/lpuart/boards/nrf52840dk_nrf52840.overlay | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/peripheral/lpuart/boards/nrf21540dk_nrf52840.overlay b/samples/peripheral/lpuart/boards/nrf21540dk_nrf52840.overlay index 64a0726dc97..5e078327314 100644 --- a/samples/peripheral/lpuart/boards/nrf21540dk_nrf52840.overlay +++ b/samples/peripheral/lpuart/boards/nrf21540dk_nrf52840.overlay @@ -19,11 +19,11 @@ * observed on nRF21540 v2.0.0 only (~450 uA more than on v1.0.0). */ group1 { - psels = , + psels = , ; }; group2 { - psels = , + psels = , ; }; }; diff --git a/samples/peripheral/lpuart/boards/nrf52840dk_nrf52840.overlay b/samples/peripheral/lpuart/boards/nrf52840dk_nrf52840.overlay index 3607890b53e..773f95138f8 100644 --- a/samples/peripheral/lpuart/boards/nrf52840dk_nrf52840.overlay +++ b/samples/peripheral/lpuart/boards/nrf52840dk_nrf52840.overlay @@ -23,11 +23,11 @@ * observed on nRF52840 v3.0.0 only (~450 uA more then on v2.1.0). */ group1 { - psels = , + psels = , ; }; group2 { - psels = , + psels = , ; }; }; From 7f1a662cbb35a32d94489f18ad8b319fa269003b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Thu, 7 Nov 2024 08:26:34 +0100 Subject: [PATCH 2/2] samples: peripheral: lpuart: Update README with pin setup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add details about pin setup for all supported boards. Signed-off-by: Krzysztof Chruściński (cherry picked from commit 8013a82490e02c408cb0fa0d0fd33ca10ebdf391) --- samples/peripheral/lpuart/README.rst | 30 ++++++++++++++++++++++++++-- 1 file changed, 28 insertions(+), 2 deletions(-) diff --git a/samples/peripheral/lpuart/README.rst b/samples/peripheral/lpuart/README.rst index f8a332a8962..f6ad1aa5c38 100644 --- a/samples/peripheral/lpuart/README.rst +++ b/samples/peripheral/lpuart/README.rst @@ -20,8 +20,34 @@ The sample supports the following development kits: The sample also requires the following pins to be shorted: -* TX (Arduino Digital Pin 10 (4 on nRF21540 DK)) with RX (Arduino Digital Pin 11 (5 on nRF21540 DK)) -* Request Pin (Arduino Digital Pin 12 (6 on nRF21540 DK)) with Response Pin (Arduino Digital Pin 13 (7 on nRF21540 DK)) + .. list-table:: Pin connections. + :widths: auto + :header-rows: 1 + + * - Development Kit + - nRF52 DK + - nRF52833 DK + - nRF52840 DK + - nRF21540 DK + - nRF5340 DK pins + - nRF54L15 DK pins + - nRF9160 DK pins + * - Request-Response Pins + - P0.24-P0.25 + - P0.22-P0.23 + - P1.14-P1.15 + - P1.07-P1.08 + - P1.14-P1.15 + - P1.08-P1.09 + - P0.12-P0.13 + * - UART RX-TX Pins + - P0.22-P0.23 + - P0.20-P0.21 + - P1.12-P1.13 + - P1.05-P1.06 + - P1.12-P1.13 + - P1.10-P1.11 + - P0.10-P0.11 Additionally, it requires a logic analyzer.