You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid using ARDUINO_USB_MODE=1 in pio environments #255
ARDUINO_USB_MODE is set to 1 on the S2, S3 and C3 environments. This causes the device to wait for debug and never actually boot WLED without a USB data connection. Setting this to 0 allows the device to boot without having to be connected over USB.
To Reproduce Bug
Clone the latest WLED-MM, run a build on any C3, S2 or S3 environment, upload the bin file, unplug the device from your computer and connect it to a regular power supply, see bug.
Expected Behavior
ARDUINO_USB_MODE should equal to 0, thus allowing normal boot without the need of a debugger.
Install Method
Self-Compiled or other
What version/release of MM WLED?
WLEDMM 14.5.1-dev (build 2501170)
Which microcontroller/board are you seeing the problem on?
This is a tricky one, for development you really need ARDUINO_USB_MODE set to 1, but for the bin files created by the CI workflow, we should not have this set as it's not suitable for end users
I see. I don't quite understand why the USB mode setting is there, even for dev purposes. The ESP32 (and the S and C versions) all have a console on the UART pins, regardless of the USB mode setting.
I see. I don't quite understand why the USB mode setting is there, even for dev purposes.
Hi @DvidPiDev, the answer is that we need "USB_MODE=1" for boards that don't have a UART-to-USB chip. Without this flag, we can't see any boot (crash dump) messages and debug output often gets garbled.
Activity
netmindz commentedon Sep 20, 2025
This is a tricky one, for development you really need ARDUINO_USB_MODE set to 1, but for the bin files created by the CI workflow, we should not have this set as it's not suitable for end users
DvidPiDev commentedon Sep 24, 2025
I see. I don't quite understand why the USB mode setting is there, even for dev purposes. The ESP32 (and the S and C versions) all have a console on the UART pins, regardless of the USB mode setting.
netmindz commentedon Sep 25, 2025
Because of how annoying this is, this is why many Dev boards come with dual usb ports now, one for upload and one for logs
softhack007 commentedon Oct 20, 2025
Hi @DvidPiDev, the answer is that we need "USB_MODE=1" for boards that don't have a UART-to-USB chip. Without this flag, we can't see any boot (crash dump) messages and debug output often gets garbled.
Merge pull request #263 from MoonModules/copilot/fix-255 (fixes #255)
Merge pull request #263 from MoonModules/copilot/fix-255 (fixes #255)