Skip to content

ESP32-C3: Rotary Encoder Usermod causes panic (Load access fault) when activated #5201

@lnx1-1

Description

@lnx1-1

What happened?

When activating the Rotary Encoder usermod on ESP32-C3 (SuperMini), the device immediately crashes with a "Load access fault" (Guru Meditation Error) and enters a boot loop.
The crash occurs even when:

No hardware is connected
All GPIO pins in the usermod config are set to "unused"
Simply enabling the usermod in the web interface triggers the crash

To Reproduce Bug

Hardware: ESP32-C3 SuperMini
WLED Version: 0.15.0-b3
Build Method: Web-based compiler (https://wled-install.github.io/)
Selected Build: ESP32-C3 (4MB Flash, M: Audioreactive, Usermods incl: Temp, AutoSave, 4-L Display, Rotary encoder)
Steps:

Flash WLED build with Rotary Encoder usermod to ESP32-C3
Complete initial setup (WiFi, etc.)
Navigate to Config → LED Preferences → Usermod settings
Set all Rotary Encoder pins to "unused"
Enable the Rotary Encoder usermod
Device immediately crashes and reboots

Expected Behavior

The usermod should initialize without crashing, even with all pins set to unused.
Serial Output

Install Method

Self-Compiled

What version of WLED?

WLED Version: 0.15.0-b3

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

[01:55:06]Guru Meditation Error: Core  0 panic'ed (Load access fault). Exception was unhandled.
[01:55:06]
[01:55:06]Core  0 register dump:
[01:55:06]MEPC    : 0x4206662a  RA      : 0x42066880  SP      : 0x3fca4d50  GP      : 0x3fc8d000  
[01:55:06]TP      : 0x3fc7c834  T0      : 0x42066628  T1      : 0x40389620  T2      : 0xffffffff  
[01:55:06]S0/FP   : 0x00000000  S1      : 0x00000000  A0      : 0x00000000  A1      : 0x00000000  
[01:55:06]A2      : 0x00000000  A3      : 0x000040d2  A4      : 0x000040d2  A5      : 0x25000000  
[01:55:06]A6      : 0xfa000000  A7      : 0x00000003  S2      : 0x3fc9d880  S3      : 0x00000000  
[01:55:06]S4      : 0x00000000  S5      : 0x00000000  S6      : 0x00000000  S7      : 0x00000000  
[01:55:06]S8      : 0x00000000  S9      : 0x00000000  S10     : 0x00000000  S11     : 0x00000000  
[01:55:06]T3      : 0x00000006  T4      : 0x00000000  T5      : 0x00000030  T6      : 0x00000000  
[01:55:06]MSTATUS : 0x00001881  MTVEC   : 0x40380001  MCAUSE  : 0x00000005  MTVAL   : 0x00000010  
[01:55:06]MHARTID : 0x00000000  
[01:55:06]
[01:55:06]Rebooting...

Anything else?

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedThe bug is reproducable and confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions