You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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 :)
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!
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.
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:
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.
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.
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"
@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.
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.
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
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.
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.
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.
@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.
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?
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.
Activity
Aircoookie commentedon Jun 6, 2020
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 :)
stale commentedon Oct 5, 2020
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!
misery commentedon Jan 1, 2021
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?
misteraddons commentedon Oct 5, 2021
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 :)
blazoncek commentedon Oct 5, 2021
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.
misteraddons commentedon Oct 5, 2021
blazoncek commentedon Oct 5, 2021
Discord.
ByronAP commentedon Nov 4, 2021
BUMP
lsiudut commentedon Dec 27, 2021
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:
misery commentedon Dec 27, 2021
Funny... nearly at the same time: #2452 😉🙃
5 remaining items
blazoncek commentedon Oct 5, 2022
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.binfrom 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.
blazoncek commentedon Oct 5, 2022
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.
softhack007 commentedon Oct 21, 2022
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"
blazoncek commentedon Nov 1, 2022
@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.
Germaine-Sail commentedon Nov 7, 2022
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
blazoncek commentedon Nov 7, 2022
It has been since merged into main WLED.
michael-blue2 commentedon Nov 7, 2022
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
blazoncek commentedon Nov 7, 2022
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.
tanner0101 commentedon Jan 25, 2023
I was able to get WLED running on my S2 mini board using the
lolin_s2_minienv.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_miniI 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.pybut 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.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.
blazoncek commentedon Jan 25, 2023
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.
softhack007 commentedon Jan 25, 2023
@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.
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.
fredolivas commentedon May 2, 2023
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?
blazoncek commentedon May 2, 2023
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.