Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
15.04k stars 3.25k forks source link

Continue reboots using GPIO14 and GPIO 15 in led out after change from AudioReactive digitalmic #4301

Open chybeat opened 5 hours ago

chybeat commented 5 hours ago

What happened?

After add an SK6812 and other WS2812B in WLED settings led preferences ESP reboots.

To Reproduce Bug

Installing WLED

  1. Install WLED 0.15.0-b7 from https://install.wled.me (using option Erase all user data)
  2. Set Wi-Fi (Joined to hidden SSID, so name and password needs to be writen)
  3. Visit device.
  4. Go to config> Wifi Setup > Set static IP (10.10.1.135) and gateway to router's IP. Click onsave and connect
  5. open http://10.10.1.135
  6. Go to config > Usermods > and change the AudioReactive's Digital mic pins to my config: SD-22, WS-21, SCK-23
  7. Save and type ir browser's address http://10.10.1.135/reset
  8. Go to config > Led preferences, then start to configure LED & Hardware setup

Hardware & setup

  1. Disable automatic brightness limiter ( my PSU is 300w, and I setup 234 leds)
  2. Change the 1st led ouput and add WS2812B led strip with same lenght: 18 LEDS using GPIOs: 26, 5, 14, 16,17)
    to be more clear: Pin 14 needs to be changed from audioreactive digital mic.
    First time I try, fails when save my led settings (GPIO already used),
    after save led ouputs (1 to 5), I change GPIO from AudioReactive preferences,
    then return to add more led ouputs (8 in total for my config) and can't set any other
    led output either rebooting or disconnecting the ESP32.
    I need reinstall WLED and change the digital mic pins before set my led ouput preferences.
  3. added 1 WS2812B led strip with 11 leds length and GPIO 13
  4. Added 1 SK6812 les strip with length 112 leds and GPIO 15

After step 5 save settings. and the ligtstrips starts to flash Watching the console from https://install.wled.me get this:

ets ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
Ada
abort() was called at PC 0x4008da26 on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x4008ad54:0x3ffbff60 0x4008b0b1:0x3ffbff80 0x4008da26:0x3ffbffa0 0x4008cad1:0x3ffbffd0 0x4008409a:0x3ffbfff0 0x40086291:0x3ffc0020 0x4000d085:0x3ffb1f00 0x40082c77:0x3ffb1f20 0x4011bcef:0x3ffb1f40 0x4011c45a:0x3ffb1f90 0x4013ce31:0x3ffb1fb0 0x4008cb3a:0x3ffb1fd0
Rebooting...

Expected Behavior

In version 0.15.0-b1, I can setup this configuration without problem using the ESP32 and WLED as I describe before. but starting from 0.15.0-b2 the bug is exactly the same.

Install Method

Binary from WLED.me

What version of WLED?

0.15.0-b7

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

ets ets Jul 29 2019 12:21:46
rst:0xc (SW_CPU_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
Ada
abort() was called at PC 0x4008da26 on core 1

ELF file SHA256: 0000000000000000

Backtrace: 0x4008ad54:0x3ffbff60 0x4008b0b1:0x3ffbff80 0x4008da26:0x3ffbffa0 0x4008cad1:0x3ffbffd0 0x4008409a:0x3ffbfff0 0x40086291:0x3ffc0020 0x4000d085:0x3ffb1f00 0x40082c77:0x3ffb1f20 0x4011bcef:0x3ffb1f40 0x4011c45a:0x3ffb1f90 0x4013ce31:0x3ffb1fb0 0x4008cb3a:0x3ffb1fd0
Rebooting...

Anything else?

No response

Code of Conduct

dosipod commented 3 hours ago

I can see the same crash

[12:09:41]Rebooting...
[12:09:41]ets Jun  8 2016 00:22:57
[12:09:41]
[12:09:41]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[12:09:41]configsip: 0, SPIWP:0xee
[12:09:41]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[12:09:41]mode:DOUT, clock div:2
[12:09:41]load:0x3fff0030,len:1184
[12:09:41]load:0x40078000,len:12784
[12:09:41]load:0x40080400,len:3032
[12:09:41]entry 0x400805e4
[12:09:41]
[12:09:41]---WLED 0.15.0-b7 2410270 INIT---
[12:09:41]
[12:09:41]esp32 v3.3.6-16-gcc5440f6a2
[12:09:41]arduino-esp32 v1.0.x
[12:09:41]
[12:09:41]CPU:   ESP32-D0WDQ5 rev.1, 2 core(s), 240 MHz.
[12:09:41]FLASH: 4 MB, Mode 3 (DOUT), speed 40 MHz.
[12:09:41]heap 308332
[12:09:41]JSON buffer allocated: 32767
[12:09:41]TX power: 78/78
[12:09:41]PIN ALLOC: Pin 1 successfully allocated by 0x89.
[12:09:41]PIN ALLOC: 0x00000000000002.
[12:09:41]Registering usermods ...
[12:09:41]heap 275320
[12:09:41]Reading config
[12:09:41]Reading settings from /wsec.json...
[12:09:41]JSON buffer locked. (3)
[12:09:41]JSON buffer released. (3)
[12:09:41]JSON buffer locked. (1)
[12:09:41]Reading settings from /cfg.json...
[12:09:42]Heap before buses: 273004
[12:09:42]Removing all.
[12:09:42]Maximum LEDs on a bus: 112
[12:09:42]Digital buses: 7
[12:09:42]Switching to parallel I2S.
[12:09:42]PIN ALLOC: Pin 26 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004000002.
[12:09:42]Successfully inited strip 0 (len 18) with type 22 and pins 26,255 (itype 23). mA=55/0
[12:09:42]PIN ALLOC: Pin 5 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004000022.
[12:09:42]Successfully inited strip 1 (len 18) with type 22 and pins 5,255 (itype 23). mA=0/0
[12:09:42]PIN ALLOC: Pin 14 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004004022.
[12:09:42]Successfully inited strip 2 (len 18) with type 22 and pins 14,255 (itype 23). mA=0/0
[12:09:42]PIN ALLOC: Pin 16 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004014022.
[12:09:42]Successfully inited strip 3 (len 18) with type 22 and pins 16,255 (itype 23). mA=0/0
[12:09:42]PIN ALLOC: Pin 17 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004034022.
[12:09:42]Successfully inited strip 4 (len 18) with type 22 and pins 17,255 (itype 23). mA=0/0
[12:09:42]PIN ALLOC: Pin 13 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x00000004036022.
[12:09:42]Successfully inited strip 5 (len 11) with type 22 and pins 13,255 (itype 23). mA=0/0
[12:09:42]PIN ALLOC: Pin 15 successfully allocated by 0x82.
[12:09:42]PIN ALLOC: 0x0000000403E022.
[12:09:42]Successfully inited strip 6 (len 112) with type 30 and pins 15,255 (itype 27). mA=0/0
[12:09:42]LED buffer size: 11200B
[12:09:42]Heap after buses: 267760
[12:09:42]Starting usermod config.
[12:09:42]JSON buffer released. (1)
[12:09:42]heap 267716
[12:09:42]Initializing strip
[12:09:42]Loading custom palettes
[12:09:42]Loading custom ledmaps
[12:09:42]heap 267512
[12:09:42]Usermods setup
[12:09:42]AR: Failed to initialize sound input driver. Please check input PIN settings.
[12:09:42]heap 267292
[12:09:42]Defaulf WiFi used.
[12:09:42]Ada
[12:09:42]initServer
[12:09:42]heap 212644
[12:09:42]initIR
[12:09:42]heap 212644
[12:09:42]Initial connect or forced reconnect.
[12:09:42]Defaulf WiFi used.
[12:09:42]initConnection() called.
[12:09:42]Access point disabled (init).
[12:09:42]Connecting to toi...
[12:09:42]abort() was called at PC 0x4008dc0a on core 0
[12:09:42]
[12:09:43]ELF file SHA256: 0000000000000000
[12:09:43]
[12:09:43]Backtrace: 0x4008af38:0x3ffb5e80 0x4008b295:0x3ffb5ea0 0x4008dc0a:0x3ffb5ec0 0x4008ca58:0x3ffb5ef0 0x4017291e:0x3ffb5f30 0x40164142:0x3ffb5f60 0x4015da88:0x3ffb5f80 0x4008cd1e:0x3ffb5fb0
[12:09:43]
[12:09:43]Rebooting...

The error related to "AR: Failed to initialize sound input driver. Please check input PIN settings. " is there all the time even if the usermod is not active and pins are unused

chybeat commented 1 hour ago

Thanks for your complete log @dosipod. I think was a problem with my board, and amazon works all night... so, I bought 2 more ESP32 boards thinking mine is broken 😅.... Your log is much better and complete than mine. So Thanks for take time to reproduce the error and share the information.

softhack007 commented 36 minutes ago

added 1 WS2812B led strip with 11 leds length and GPIO 13 Added 1 SK6812 les strip with length 112 leds and GPIO 15

starting from 0.15.0-b2 the bug is exactly the same.

@dosipod @chybeat please check if the crash also happens if you configure all outputs as ws2812b

It might be that the bug is related to having one "sk6812" (RGBW) output among all other being ws2812b.