From 421838fd1dd1e36acbca6d6e62d4f255d46b42c5 Mon Sep 17 00:00:00 2001 From: kevin Date: Sat, 18 Jul 2026 22:50:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E6=9D=A5=E6=B2=A1=E6=B5=81=E6=8E=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- variants/nrf52840/diy/moonshine_NRF52/readme.md | 9 +++++++-- variants/nrf52840/diy/moonshine_NRF52/variant.h | 3 ++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/variants/nrf52840/diy/moonshine_NRF52/readme.md b/variants/nrf52840/diy/moonshine_NRF52/readme.md index 1070a801b..09b344813 100644 --- a/variants/nrf52840/diy/moonshine_NRF52/readme.md +++ b/variants/nrf52840/diy/moonshine_NRF52/readme.md @@ -32,13 +32,18 @@ DIY Meshtastic node variant based on the RF-BM-ND05 nRF52840 module. | GPS_TX (MCU) | P0.08 | Data from MCU to GNSS | | UART_TX | P0.14 | Serial2 | | UART_RX | P0.15 | Serial2 | -| UART_RTS | P0.12 | Serial2 flow control | -| UART_CTS | P0.13 | Serial2 flow control | +| UART_RTS | P0.12 | Serial2 flow control (see note) | +| UART_CTS | P0.13 | Serial2 flow control (see note) | Silkscreen GPS_TX/GPS_RX labels are from the GPS module perspective; Meshtastic macros (`GPS_TX_PIN` / `GPS_RX_PIN`) are from the MCU perspective, so they are swapped relative to the silkscreen. +Note: P0.12/P0.13 are physically wired as RTS/CTS, but the Adafruit nRF52 core's +`Serial2` singleton uses the 4-argument constructor (`uc_hwFlow = 0`), so +hardware flow control is not enabled by firmware. These pins are unused unless +the core is patched. + ## Build ```sh diff --git a/variants/nrf52840/diy/moonshine_NRF52/variant.h b/variants/nrf52840/diy/moonshine_NRF52/variant.h index b1616d7c1..a81d2ba23 100644 --- a/variants/nrf52840/diy/moonshine_NRF52/variant.h +++ b/variants/nrf52840/diy/moonshine_NRF52/variant.h @@ -88,7 +88,8 @@ MOONSHINE NRF52 PIN ASSIGNMENT (RF-BM-ND05) #define PIN_SERIAL1_TX GPS_TX_PIN #define PIN_SERIAL1_RX GPS_RX_PIN -// Serial2 (with hardware flow control: P0.12=RTS, P0.13=CTS) +// Serial2 (P0.12/P0.13 are wired to RTS/CTS, but HW flow control is not enabled +// by the Adafruit nRF52 core Serial2 singleton - these pins are unused by firmware) #define PIN_SERIAL2_RX (0 + 15) // P0.15 #define PIN_SERIAL2_TX (0 + 14) // P0.14