Skip to content

Fix USB serial issue on Xiao ESP32-S3 Wio (#1416) - #3726

Open
Cyclic3 wants to merge 2 commits into
meshcore-dev:mainfrom
Cyclic3:main
Open

Cyclic3 wants to merge 2 commits into
meshcore-dev:mainfrom
Cyclic3:main

Conversation

@Cyclic3

@Cyclic3 Cyclic3 commented Oct 29, 2026

Copy link
Copy Markdown

For the Xiao ESP32-S3 Wio platform, there's a bug where USB communication doesn't work (#1416). For reasons not readily apparent to me, the cli never works if the firmware does not first wait for the serial port to be initialised, even several minutes later. The repeater firmware seems to have acknowledged this somehow, with a fixed delay of 1s before boot, but since I'm not 100% sure that this is the reason that line is there, I haven't touched it.

This PR adds the required wait, with a 10ms poll loop on Serial.availableForWrite(). There may be other better fixes, but this is the one I (accidentally) happened upon: it works, and I'm happy to make changes if requested.

@fdlamotte

Copy link
Copy Markdown
Collaborator

interesting ...

but I'm worried about possible side effects for other boards

maybe you could add the busy loop into board.begin (it would fix this only for this specific board)

@Cyclic3

Cyclic3 commented Nov 14, 2026

Copy link
Copy Markdown
Author

Done! I've also tested it plugged into a dumb charger on the ble firmware, just in case this poll loop needed it to be plugged in to a computer (it doesn't).

This branch has not been deployed

No deployments
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.

2 participants