Repository navigation
change -C5 and -C6 builds to use USB-CDC - #5944
Conversation
* change the build settings from UART-to-USB to USB-CDC (all devkits have CDC, but some cheap boards don't have UART-to-USB) * some debug help to print the USB config when compiling with WLED_DEBUG * ensure that ARDUINO_USB_MODE is set on C5 builds * P4 buildenv comments updated still needs some testing, to confirm that boards will finish booting when not connected to a PC by USB
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
USB settings and environment descriptions platformio.ini |
C5 and C6 environments enable virtual USB CDC at boot and retain serial-to-USB CDC as a commented option. C5 sets its mandatory USB mode in shared build flags. Environment descriptions identify USB connection details; the P4 16 MB description updates its PSRAM wording. |
Debug USB macro warnings wled00/wled_main.cpp |
Under WLED_DEBUG, preprocessor warnings report defined CDC-on-boot and USB-mode values, and enabled DFU-on-boot or MSC-on-boot settings. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Feature
Possibly related PRs
- wled/WLED#5943: Adds an ESP32-C6 environment that explicitly enables USB CDC on boot, related to the C6 USB configuration changes.
Suggested labels: enhancement
Suggested reviewers: dedehai, netmindz
Merge Risk: 
Minimal · up to 0edda
-
C5 and C6 builds now use native USB CDC for serial communication. No merge-blocking failure is established.
Pre-merge checks: 
5
-
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (1 skipped: 1 unsupported.)
-
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
|
ok, quick tests on my C5 and C6 "devKit" boards look good. @DedeHai or @willmmiles I only have devkits - please give this PR a spin on a board without the second "UART-to-USB" connector. Quick checklist:
|
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
|
I do not have a board with both ports - the Arduino USB mode is still a bit of a mystery to me... on the S3 if it is set wrong, it won't boot as it waits for JTAG - until you open a serial port. |
|
Ah this lovely joy! I'm not sure if we can get both CDC and not hanging on boot without serial connected using build flags alone. I really struggled with the Adafruit S3 matrix portal. I think we might possibly need to change the code as well that blocks until the serial goes ready. It's a long time back and maybe V5 had better options for this than V4. I think I did see a PR for the esp web tools that were looking to supply the right image for CDC Vs UART, if we do need to have two build variants |
|
seems to work => merging |
|
Realizing you're not asking for feedback here, but a few hours before you merged this in I managed to compile and shove the |
esp32c6dev_4MB now enables USB CDC on boot itself (wled#5944). Co-Authored-By: Claude Opus 5.5 (Claude Code) <[email protected]>
still needs some testing, to confirm that boards will finish booting when not connected to a PC by USB
Summary by CodeRabbit