xiao_nrf52: move Wire to NFC pins to unblock BLE pairing#2499
Open
Strykar wants to merge 1 commit intomeshcore-dev:devfrom
Open
xiao_nrf52: move Wire to NFC pins to unblock BLE pairing#2499Strykar wants to merge 1 commit intomeshcore-dev:devfrom
Strykar wants to merge 1 commit intomeshcore-dev:devfrom
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On
Xiao_nrf52*envs,PIN_WIRE_SDA=D7/PIN_WIRE_SCL=D6collide withPIN_SERIAL1_RX/TXdefined in variants/xiao_nrf52/variant.h:With
Wiremuxed 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
dev(currentmeshcore-dev/Adafruit_nRF52_Arduinofork) and onmainwith the stockframework-arduinoadafruitnrf52@1.10700.0— both work