fix(waveshare): stabilize RP2350B-Plus-W runtime - #118
Open
h5tark wants to merge 1 commit into
Open
Conversation
Use the hardware-validated low-flash BTstack storage layout and correct Waveshare board metadata. Defer HID feature and output work outside TinyUSB callbacks, cache feature reports in fixed storage, and retain the enumerated USB persona across controller reconnects. Validated on physical hardware with input, rumble, lightbar, adaptive triggers, audio haptics, speaker, microphone, and reconnect.
h5tark
marked this pull request as ready for review
August 4, 2026 20:47
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.
Summary
Root cause
Testing on a physical Waveshare RP2350B-Plus-W showed that BTstack persistence near the end of the advertised 16 MiB flash could stall startup or pairing initialization.
USB control callbacks could also allocate dynamic storage and schedule Bluetooth work while TinyUSB endpoint state was timing-sensitive. This resulted in unstable enumeration or a controller that accepted normal input while advanced features such as rumble, adaptive triggers, feature reports, and audio did not work reliably.
Hardware validation
Validated on a physical Waveshare RP2350B-Plus-W with:
Build validation
Successfully built the companion firmware with:
The Waveshare-specific runtime behavior is compile-time gated and does not affect the standard Pico 2 W build.
Hardware evidence