Skip to content

ESP32-S2 support ?  #966

Closed
Closed

Description

@johnall203

Hello noob here. I was wondering if the newer ESP32-S2 board was supported ? Has anyone tried it and is the installation process the same as the regular ESP32 ? I figured if I was going to try it but wanted to be sure before making a purchase. Thank you for the help ! John

Activity

  1. Aircoookie commented on Jun 6, 2020

    @Aircoookie
    Member

    Hi!
    Seems like the ESP32 Arduino core team is working on it, but the ESP32-S2 doesn't appear to be 100% compatible with the existing sources and binaries: espressif/arduino-esp32#4066

    So most likely there is no support for the ESP32-S2 yet until it is supported in the Arduino Core.
    Will use this issue to track ESP32-S2 support specifically in regards to WLED :)

  2. stale commented on Oct 5, 2020

    @stale

    Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs.
    Thank you for using WLED!

  3. added
    stale
    on Oct 5, 2020
  4. removed
    stale
    on Oct 5, 2020
  5. misery commented on Jan 1, 2021

    @misery
    Contributor

    I found/added experimental support for my ESP32-S2 in ESPHome: esphome/esphome#1433

    As WLED also uses platformio it could be adopted easily until it is full supported?

    [env:esp32s2]
    board = nodemcu-32s
    board_build.mcu = esp32s2
    board_build.partitions = partitions.csv
    framework = arduino
    platform = [email protected]
    platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#idf-release/v4.2
    
  6. misteraddons commented on Oct 5, 2021

    @misteraddons

    I would also like to know if there's any update on this? ESP32-S2 has been out for a year now and it seems like the future. Thanks :)

  7. blazoncek commented on Oct 5, 2021

    @blazoncek
    Contributor

    I would also like to know if there's any update on this? ESP32-S2 has been out for a year now and it seems like the future. Thanks :)

    It works, kind of. The last reports I've heard of complained about LittleFS having issues on S2.
    WLED now officially includes a S2 build environment (saola) so you can build it yourself.

  8. misteraddons commented on Oct 5, 2021

    @misteraddons
  9. blazoncek commented on Oct 5, 2021

    @blazoncek
    Contributor

    Discord.

  10. ByronAP commented on Nov 4, 2021

    @ByronAP

    BUMP

  11. lsiudut commented on Dec 27, 2021

    @lsiudut

    FWIW I managed to build WLED for ESP32-S2 with minor (yet dirty) patches over LittleFS (which is now part of arduino-esp32) and ESPAsyncWebServer (mbedtls was apparently bumped to newer version). Haven't had much time for detailed testing but it seems to be working just fine (w/ ws2811 at least).

    Given that I care about newborn baby now I don't expect myself to have time to familiarize myself with the codebase to submit a high quality PR. I don't know how far has the project went with the issue, maybe there's cleaner way of making it buildable already, but in case there isn't, here are gists with patches that make it work:

  12. misery commented on Dec 27, 2021

    @misery
    Contributor

    Funny... nearly at the same time: #2452 😉🙃

  13. 5 remaining items

  14. blazoncek commented on Oct 5, 2022

    @blazoncek
    Contributor

    What worked for me (until I understood how things work) I flashed MiroPython 1st using the instructions on their page using esptool.
    Once MicroPython was up & running. I flashed firmware.bin from PIO build folder at the address 0x10000.
    You may skip the MicroPython if you flash with PIO but make sure you have correct partition map .CSV file.

  15. blazoncek commented on Oct 5, 2022

    @blazoncek
    Contributor

    Unfortunately running WLED on S2 is still very much hit & miss. If you do not access web UI it will be running ok, but frequent UI access will cause it to loose wifi connection or reboot.
    It may be a flaw in WiFi or TCP stack or AsyncWebServer incompatibility.

  16. softhack007 commented on Oct 21, 2022

    @softhack007
    Member

    Just stumbled over this bug report for CDC on S2: "Issue realted ESP32-S2 CDC to the Serial.setDebugOutput(true)"
    espressif/arduino-esp32#6766 (comment)
    seems that debug out from parallel tasks will cause a lock-up.

    espressif/arduino-esp32#7284
    "When using ESP32-S2 with USB CDC and debug output is set also to go to the CDC (Serial.setDebugOutput(true)), the S2 freezes after a few line of logging. It works fine on the ESP32-S3"

  17. blazoncek commented on Nov 1, 2022

    @blazoncek
    Contributor

    @softhack007 it looks like omitting ARDUINO_USB_CDC_ON_BOOT and WLED_DEBUG provide a more robust working on S2. Unfortunately no debugging possible on Lolin S2 mini board.
    Still not perfect though.

  18. Germaine-Sail commented on Nov 7, 2022

    @Germaine-Sail

    Anyone interested may try https://github.com/blazoncek/WLED/tree/esp32-s2 Please use this as PIO environment:

    Apologies if I'm asking a silly question but the above link seems not to work, I'd like to compile this code for an ESP32-S2, I take it the above link use to navigate to a WLED clone that was tweaked for the above IC.

    Thanks
    Germaine

  19. blazoncek commented on Nov 7, 2022

    @blazoncek
    Contributor

    It has been since merged into main WLED.

  20. michael-blue2 commented on Nov 7, 2022

    @michael-blue2

    It has been since merged into main WLED.

    How do you guys install wled on the s2? I had lots of trouble just installing the esphome as well. but managed to find a way using their online installation but just needed 2 times of the sequence

  21. blazoncek commented on Nov 7, 2022

    @blazoncek
    Contributor

    Please use WLED forum or Discord for help and support questions.
    As a side note: it is a waste of time ATM to try anything on S2.

  22. tanner0101 commented on Jan 25, 2023

    @tanner0101

    I was able to get WLED running on my S2 mini board using the lolin_s2_mini env.

    To do this I just followed the normal install instructions for compiling binary but overriding default envs to the s2 one @blazoncek added.

    ; default_envs = esp32s2_saola
    +default_envs = lolin_s2_mini

    I was a little confused on whether I needed to flash a bootloader or not. I ended up flashing the ESP32 v4 bootloader as the docs recommend. I did this using esptool.py.

    I also tried flashing the binary with esptool.py but ultimately just used the "upload" button in PlatformIO as that was easiest. Had to reset things a few time on my bread board but then it worked! I'm able to connect over WiFi and everything.

    IMG_1003

    Note that to get the ESP32 to connect over USB I had to hold the two buttons while for 1-2s while plugging it in.

    I've read there may be issues but I think it might be worth allowing this via the installer website maybe behind a warning just so its a bit easier to try for folks.

    Hoping to learn more about how WLED and PlatformIO work soon so that I can contribute :) Awesome work on this project I love it.

  23. blazoncek commented on Jan 25, 2023

    @blazoncek
    Contributor

    ESP32 variants S2, S3 and C3 are partially supported but still very much experimental.
    Partially due to buggy Espressif core libraries and lacking support in underlying Arduino platform libraries.

  24. softhack007 commented on Jan 25, 2023

    @softhack007
    Member

    @tanner0101 thanks for sharing the details on how you made your board work.
    I agree that currently the best approach is to build yourself in platformio. Pre-build .bin files are often not working on other boards.

    I was a little confused on whether I needed to flash a bootloader or not. I ended up flashing the ESP32 v4 bootloader as the docs recommend. I did this using esptool.py.

    The standard " ESP32 v4 bootloader" cannot work on -S2, as the CPU instruction set is different. You were lucky that platformIO upload also replaces invalid bootloaders.

  25. fredolivas commented on May 2, 2023

    @fredolivas

    I recently received an Adafruit Metro ESP32-S2 development board with the hopes of connecting it with WLED software. I haven't been able to install WLED onto this board even though I can see it in the COM devices list! Is there any solution for this board & WLED available that I'm just not finding?

  26. blazoncek commented on May 2, 2023

    @blazoncek
    Contributor

    Please use WLED forum or Discord for help and support questions.
    This issue is closed as S2 is (partially) supported, though still in experimental phase.

    My personal experience is that do not expect too much from it.

  27. locked as resolved and limited conversation to collaborators on May 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions