feat: add BLE support for ESP32-C3 via BTDM VHCI - #58
Merged
Conversation
soypat
reviewed
Jul 27, 2026
Member
Author
|
Tested on Xiao-ESP32C3 with my local bluetooth branch and heartrate and heartrate-monitor both working. Also, the current WiFi still working as well. tinygo-org/tinygo#5560 is needed to be merged, and then this PR is fully ready for review/merge. UPDATE: tinygo-org/tinygo#5560 has been merged. |
deadprogram
marked this pull request as ready for review
July 28, 2026 11:03
Member
Author
|
Any more feedback here @soypat or anyone else? |
Bring up the ROM BTDM controller behind a Virtual HCI transport so the tinygo bluetooth package can drive it (scanning, advertising, and central GATT). Fixes several ROM bring-up defects along the way (CPU frequency, PHY calibration, scan tables, interrupts) and a scheduler race that broke central GATT. Adds unit tests for the VHCI RX ring buffer. Signed-off-by: deadprogram <[email protected]>
deadprogram
force-pushed
the
ble-again-july
branch
from
July 29, 2026 15:17
c2bb735 to
7258f74
Compare
Member
Author
|
Squashed into a single commit. Ready to go! |
Member
Author
|
Last call for feedback! |
Member
Author
|
OK, merging. Thanks for review @soypat |
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.
Bring up the ESP32-C3 ROM BTDM controller behind a Virtual HCI transport so the tinygo bluetooth package can drive it. Verified by scanning: advertising reports arrive continuously with correct addresses, names and RSSI.
Requires PR tinygo-org/tinygo#5559 for the linker symbols to resolve.
Once merged, the
bluetoothpackage will require a PR to incorporate this PR.But scanning is working!