Skip to content

xiao_nrf52: move Wire to NFC pins to unblock BLE pairing#2499

Open
Strykar wants to merge 1 commit intomeshcore-dev:devfrom
Strykar:fix/xiao-nrf52-wire-pins
Open

xiao_nrf52: move Wire to NFC pins to unblock BLE pairing#2499
Strykar wants to merge 1 commit intomeshcore-dev:devfrom
Strykar:fix/xiao-nrf52-wire-pins

Conversation

@Strykar
Copy link
Copy Markdown

@Strykar Strykar commented May 7, 2026

Problem

On Xiao_nrf52* envs, PIN_WIRE_SDA=D7 / PIN_WIRE_SCL=D6 collide with PIN_SERIAL1_RX/TX defined in variants/xiao_nrf52/variant.h:

#define PIN_SERIAL1_RX  (7)
#define PIN_SERIAL1_TX  (6)

With Wire muxed onto the same pads, the BLE companion advertises briefly after boot and then stops. The MeshCore Android app intermittently fails to pair, and Serial output is unreliable.

Fix

Move Wire to the NFC pads (P0.30 NFC1, P0.31 NFC2). The Adafruit BSP exposes them as Arduino pins 30/31 and they aren't claimed by another peripheral on this board. Same approach Meshtastic uses for the same baseboard (their seeed_xiao_nrf52840_kit/variant.h).

Diff

+5/-2 in variants/xiao_nrf52/platformio.ini. No code changes.

Tested

  • Hardware: XIAO nRF52840 Sense + Wio-SX1262 for XIAO Kit
  • Confirmed: BLE advertises stably, MeshCore Android app pairs and stays connected
  • Tested on dev (current meshcore-dev/Adafruit_nRF52_Arduino fork) and on main with the stock framework-arduinoadafruitnrf52@1.10700.0 — both work

PIN_WIRE_SDA=D7/PIN_WIRE_SCL=D6 collide with PIN_SERIAL1_RX/TX defined
in variant.h. Muxing Wire on those pads lets the BLE companion advertise
briefly then go silent on the Wio-SX1262 for XIAO baseboard.

Move Wire to the NFC pads (P0.30/P0.31, Arduino pins 30/31), matching
what Meshtastic does for the same baseboard.

Co-Authored-By: Claude Opus <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant