Skip to content

0.16.0 alpha Boot looping issue on ESP32 #4848

Closed

Description

@NotAmphetamine

What happened?

After flashing the ESP32 with the newest available 0.16.0 nighty binary the log console shows

[16:56:07]ets Jul 29 2019 12:21:46
[16:56:07]
[16:56:07]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[16:56:07]configsip: 0, SPIWP:0xee
[16:56:07]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[16:56:07]mode:DIO, clock div:2
[16:56:07]load:0x3fff0030,len:1184
[16:56:07]load:0x40078000,len:13132
[16:56:07]load:0x40080400,len:3036
[16:56:07]entry 0x400805e4
[16:56:08]Ada

which repeats forever.

The used board is sourced from Aliexpress and appears to be ESP-32D Wifi+BT/N4XX with the following chip Info

  • Chip Family: ESP32
  • Chip Model: ESP32-D0WDQ5-V3 (revision 3)
  • Number of Cores: 2
  • Max CPU Frequency: 240MHz
  • Has Bluetooth: YES
  • Has Embedded Flash: NO
  • Has Factory-Calibrated ADC: YES
    Uploading stub...
    Running stub...
    Stub running...
    Changing baud rate to 460800
    Changed.
  • Flash Size: 4MB
  • Flash Mode: dout
  • Flash Frequency: 80MHz

The newest pre-release version (link) has this issue, using an older version (link) fixes it.

To Reproduce Bug

In order to reproduce this issue you just need to flash the aforementioned software on to the ESP (I tried EspTools in the macOS Terminal via Python3 and the ESP flasher dev MacOS) and observer the logs which will repeat indefinitely. Clearing the Flash or factory resetting via EspTools did not influence this issue in any way.

Expected Behavior

The logs in the flasher window will simply show the segment you can find below and loop this forever until the serial port is closed. No WLED-AP Network appears and no output to LEDs is observed. When using the web installer nothing apart from showing an endless preparing installation screen.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.16.0 alpha V4 (20250818)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

[16:56:07]ets Jul 29 2019 12:21:46
[16:56:07]
[16:56:07]rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
[16:56:07]configsip: 0, SPIWP:0xee
[16:56:07]clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
[16:56:07]mode:DIO, clock div:2
[16:56:07]load:0x3fff0030,len:1184
[16:56:07]load:0x40078000,len:13132
[16:56:07]load:0x40080400,len:3036
[16:56:07]entry 0x400805e4
[16:56:08]Ada

Anything else?

No response

Code of Conduct

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

Activity

  1. scott-carrion commented on Aug 18, 2025

    @scott-carrion

    I have also observed this persistent reboot loop issue on a different board. Dumping some information and debug logs below.

    Board details:
    ESP32s3-devkitc-1-n8r8 (Quad SPI I/O, octal SPI PSRAM)
    This device matches exactly with this environment preset: "esp32s3dev_8MB_opi"

    I executed a fresh install using: "pio run -e esp32s3dev_8MB_opi -t erase_upload --upload-port /dev/ttyUSB0"

    The file attached below was the UART capture from the ESP32 board.
    err.log

  2. DedeHai commented on Aug 18, 2025

    @DedeHai
    Collaborator

    This might be related to the newly added config validation and bootloop check. Can you please post the config.json file used?

  3. wled-install commented on Aug 18, 2025

    @wled-install
    Contributor

    I can confirm issue on ESP32 (4MB). Installed from Platformio after flash erase. No issue with version from August 13th (IDF V4 build tested to have the same IDF as currently 0.16. completely moved to IDF V4, no other tested yet).

    I dont know much about WLED code, but eventually somewhere WLED.reset() is called by setting doReboot=true, but initialized config is not written at that moment, because with debug enabled:

    ---WLED 0.16.0-alpha 2412040 INIT---
    
    esp32 4.4.4.20230310
    arduino-esp32 v2.0.9
    CPU:   ESP32-D0WDQ6 rev.1, 2 core(s), 240 MHz.
    FLASH: 4 MB, Mode 2 (DIO), speed 40 MHz.
    heap 259240
    JSON buffer allocated: 32767
    TX power: 78/78
    PIN ALLOC: Pin 1 successfully allocated by 0x89.
    PIN ALLOC: 0x0000000000000lX.
    heap 226404
    checking for bootloop
    restore /cfg.json 
    no backup found
    Reset config
    Reading config
    Reading settings from /wsec.json...
    JSON buffer locked. (3)
    JSON buffer released. (3)
    JSON buffer locked. (1)
    Reading settings from /cfg.json...
    Heap before buses: 224172
    No busses, init default
    LED buffer size: 392B/0B
    PIN ALLOC: Pin 0 successfully allocated by 0x85.
    PIN ALLOC: 0x0000000000000lX.
    Starting usermod config.
    JSON buffer released. (1)
    heap 224072
    Initializing strip
    Maximum LEDs on a bus: 30
    Digital buses: 1
    PIN ALLOC: Pin 16 successfully allocated by 0x82.
    PIN ALLOC: 0x0000000000000lX.
    Heap after buses: 223364
    Loading custom palettes
    Loading custom ledmaps
    strip buffer size: 120B
    Heap after strip init: 223228B
    -- Creating segment: 0x3ffd431c [0,30:0,1]
    heap 223000
    Usermods setup
    PIN ALLOC: Pin 15 successfully allocated by 0x20.
    PIN ALLOC: 0x0000000000000lX.
    PIN ALLOC: Pin 32 successfully allocated by 0x20.
    PIN ALLOC: 0x0000000000000lX.
    PIN ALLOC: Pin 14 successfully allocated by 0x20.
    PIN ALLOC: 0x0000000000000lX.
    heap 217792
    WiFi-E: Event 0
    WiFi: Defaulf SSID (Your_Network) used.
    WiFi-E: Event 2
    Ada
    DMX input disabled due to rxPin, enPin or txPin not set
    initServer
    heap 171536
    initIR
    heap 171536
    WLED RESET
    WiFi-E: Event 3
    ets Jun  8 2016 00:22:57
    
    rst:0xc (SW_CPU_RESET),boot:0x13 (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:DIO, clock div:2
    load:0x3fff0030,len:184
    load:0x40078000,len:12680
    load:0x40080400,len:2908
    entry 0x400805c4
    
  4. willmmiles commented on Aug 19, 2025

    @willmmiles
    Member

    I hit this one with a device that had an empty flash. PR incoming shortly.

  5. DedeHai commented on Aug 20, 2025

    @DedeHai
    Collaborator

    @willmmiles thanks for fixing it

  6. zanzeoo commented on Sep 26, 2025

    @zanzeoo

    Hello , i tried to install it on an ESP32-S3-FH4R2 but it still rebooting , what binary should i use , it's a internal flash and psram

    Thx

  7. DedeHai commented on Sep 26, 2025

    @DedeHai
    Collaborator

    @zanzeoo please use discord or discourse forum for support questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions