Skip to content

Single configured usermod crashes on ESP32-C3 #5495

@aalaei

Description

@aalaei

What happened?

The default i2ssdPin is hardcoded to 32, but ESP32-C3 only has GPIOs 0–21. This causes pin allocation to fail silently, leaves GPIO 15 stuck as allocated, and ends up with disableSoundProcessing = false
despite having no working audio source (line 1475 overrides the earlier check at 1472). Result: watchdog crash loop, no WiFi AP.

Fix is straightforward — define valid default pins for C3, either in the board env or in the code:

-D I2S_SDPIN=2
-D I2S_WSPIN=3
-D I2S_CKPIN=4

Tested on ESP32-C3-DevKitM-1, WLED 0.17.0-dev. Without the fix it bootloops, with it everything works fine.

To Reproduce Bug

flash audio reactive version to esp32-c3

Expected Behavior

The board boots properly, there’s no boot loop, and the WLED SSID is visible.

Install Method

Self-Compiled

What version of WLED?

0.16.x

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

Anything else?

A propsed PR to solve the issue #5496

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

bugconfirmedThe bug is reproducable and confirmedfixed in sourceThis issue is unsolved in the latest release but fixed in master

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions