New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for esp32-c3 #1940
Comments
Hi! |
Hey @Aircoookie thx for letting me know :) Give me a heads up once the arduino core lib is ready and you start integrating it. I would really like to contribute, even if that means providing you and other maintainers with some test boards is all I can do :D Cheers, |
Hi @Aircoookie, |
Definitely tracking this issue now myself, starting to use more C3s in projects personally than 8266s. |
I'm ready for the c3 to be supported as well. Especially with the ability to directly replace certain form factor esp8266 devices |
Also following along. The 12F form factor compatibility makes this such an attractive chip for various projects. |
Support for Esp32-C3 would be really useful. |
Maybe someone wants to try it: #2454
You should expect problems as it grabs a lot of "current development" branches. |
Any news? @misery |
I'm wondering the same! Have a bunch of c3's collecting dust over here |
Well, it was merged into master branch. So you can start using it. :-) |
I just tried WLED on an ESP32c3 (build from master branch), and I have 2 issues:
Are any of these 2 known issues? Can I help? EDIT: adding board schematic: https://raw.githubusercontent.com/01Space/ESP32-C3FH4-RGB/main/Schematic/ESP32-C3FH4-RGB%20Schematic.pdf |
Seems like this: #2518 |
Any tips on how I can get wled to actually flash and boot on an esp32c3 based board? I bought a boat load of boards for a ton of wled projects, only to discover that apparently wled just flat out doesn't work on these??? Based off the wiki, I ordered some of these from electrodragon, and I'm something like 7 hours into failing at successfully flashing even one of them. Absolutely every single thing I do, up to and including downloading the source and compiling specifically the esp32c3 bin, on boot the serial output is just "invalid header." All flashing has been attempted with espeasy and esphome flasher. I've also attempted flashing every bootloader under the sun I can find for an esp32c3 and only results in the exact same thing. Specifically I've tried flashing a bootloader aircookie suggested in another github thread I ran across, and I'd link that here, but I've been to a hundred different github repos today trying to find an answer for this and can't readily find it.. Appreciate any insight anyone could give on this! |
Try using official Espressif flashing tool ‘esptool‘. |
Biscuits.. Neglected to mention, I've tried esptool as well by flashing various bootloaders to 0x0 and the wled bins to 0x10000. Have also used esptool to erase the flash and start over as well.
Enable a serial monitor, reboot esp and just dumps the invalid header. Just gave the expressif 'esptool' a shot, flashing the bootloader to 0x0, rebooting into flash then the wled bin to 0x10000 with the same result. Initial serial connection gives a bunch of garbage ascii characters, then floods with invalid header again. |
@Jugrnot there is no official binary yet, so the one you used, if downloaded from here, isn't for the c3. The c3 has another processor core than the other ESP32 family so other instruction set. |
Just to clarify - WLED in NOT stable yet on ESP32-C3 and ESP32-S2. Both of these compile and partially work, but are practically not fun to use due to #2518 , which is also why I don't offer release binaries for them. |
You need another bootloader for the ESP32-C3, you can grab them here: https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/esp32c3/bin With the help of this comment I managed to get a version that at least boots :) //edit: tbh, I first tried flashing a sample on the board that would let the onboard RGB led change colour, then I ripped the command line used by Arduino and replaced the binary with the one I compiled using PIO. Arduino provides a working bootloader and I guess also a partition scheme. |
Well I finally got around to giving this another go with your suggestions, but quite honestly my level of knowledge with programming just isn't up to snuff with this stuff and frankly I don't have the time to mess with this anymore. Bought these because they were (I thought) on the wiki list of compatible devices, not realizing that it was the esp8266 versions specified and not the esp32. Think these will end up on ebay or something and I'll just stick with what I know and what works. Thanks anyway! |
I managed to get WLED working on the ESP32-C3, it came down to the changes from @depau which never got merged into ESPAsyncWebserver: https://github.com/Depau/ESPAsyncWebServer/tree/wi-se-patches (link to the original issue: me-no-dev/ESPAsyncWebServer#951) For testing purposes I updated ESPAsyncWebserver to
//edit: I'm getting some random reboots when doing a lot of REST calls, but that might also be a power issue (tough my power supply is already running at 5,3V). The wifi range is also pretty limited, after 1m my phone drops the connection. But those are issues for tomorrow. |
It still crashes from time to time, but there is no specific action that triggers this, it's just a matter of randomly hitting stuff in the UI. Log output is from a build with
//update below
And the stack trace I got is this
I still have no idea what I'm doing though, but I'm making progress :) //update2: according to the Espressif docs and the fact that MTVAL is 0x00000008, the cause seems to be this:
//update3: I have been trying to figure out why it's trying to free a NULL struct because there seems to be plenty of assertions in the code to prevent that error and I don't know enough C++ to find out what's going on. Maybe if I have some more spare time I'll see if I can get the GDB after panic mode working. //update4 (21/08): spent another morning trying to get it to work, after erasing the flash I'm now stuck again in bootloops either with |
Anyone interested may try https://github.com/blazoncek/WLED/tree/esp32-s2 |
Hey! Any news about esp32 c3? |
@AllExHH Can you share your PIO & bootloader setup? I've tried with the one here for the XIAO and haven't been able to get it out of the bootloop. |
I tried to get WLED to run on a Lolin C3 Mini from the latest git commit, to no joy. I changed the Does anyone have a working binary they can share? |
Please join Discord or WLED forum for help and support questions. |
For those having issues with esp32-c3 on main branch, as of today, 12/14/2022, I had to upgrade espressif@5.1.1 to espressif@5.2.0 in the platformio.ini. Once that was done, my device (an ESP32-C3-DevKitC-02) went from bootloop with an lfs error, to functioning appropriately.
|
Can you tell me how to configure it so that WLED can run smoothly on XIAO ESP32C3? I'm really interested in this! Thank you for your help. |
would love to follow a solution here in this thread... |
@limengdu This is what I did and it is working so far with xiao esp32c3. I followed
|
I tried @wilson3682 's above config on two ESP32-C3-DevkitC-02 v1.1's and both seem to be working fine. Even from a completely wiped flash this works fine. The onboard RGB LED on GPIO8 can also be controlled from WLED. |
You need to include Also I would not overwrite an existing build target, but rename your build target to something like |
I didn't want to post here after using forum was suggested, but I also don't have slightest problems with S3 for over a year atm. I do normal platformio build for the s3 platform (with few minor code modifications to allow using gpios > 33). |
Lucky you :-) great that it works for you, as owners of other -C3/-S2/-S3 boards still experience a lot of problems.
These modifications are not needed any more. Actually the best approach - as you suggest - is to build yourself in platformio. Pre-build .bin files are not working everywhere. |
Soo, I'm following this and so far I have this output log... any idea?
|
Yes |
Yes but it'repeted every second I think the ESP is bootlooping |
You mean the complete block including In both cases, you could build with |
the whole block I posted is repeating, btw I'll try wled debug ASAP |
|
According to the reset reason - BROWNOUT_RST - you're not providing enough power to your module, voltage drops too much and it eventually resets. Lookup what brownout detector is and how it works. |
Yess, I was using programmer 5v :) |
Ok so,
but it seems to work... for the info about the board this is the website: https://www.electrodragon.com/product/esp-led-strip-board/?attribute_pa_esp=esp32-c3-12-2mb here are schematics: https://w.electrodragon.com/w/ESP_LED_Board_HDK |
Still no official support for ESP32-C3 boards? (I got the cool tiny USB-C one from Seeed and got the "Your ESP32-C3 board is not supported" message when trying to flash. 😞) |
I have 3 of them running, but i have to check, top find my ini. Since i
have Reinstall my complete pc
Stefan Wolfrum ***@***.***> schrieb am Di., 25. Apr. 2023,
11:59:
… Still no official support for ESP32-C3 boards? (I got the cool tiny USB-C
one from Seeed and got the "Your ESP32-C3 board is not supported" message
when trying to flash. 😞)
—
Reply to this email directly, view it on GitHub
<#1940 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALZ44HZGGQRXRNRWCZQHL4LXC6OAJANCNFSM43754IOA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Dear people, please read all posts above. |
Thanks for the hint, @blazoncek – unfortunately, I still get the "... C3 board not supported" error from the https://wled-install.github.io/ page. 😞 |
Please join WLED forum or Discord for help and support questions. |
Is your feature request related to a problem? Please describe.
Currently flashing the binary onto a board featuring the esp32-c3 like the ESP32-C3-DevKitM-1 does not work. The serial console just spams Invalid Header and the board is constantly rebooting.
Describe the solution you'd like
Would it be possible to add support for this kind of board/mcu? Apparently there is an early stage of the arduino-espressif framework that might already be usable in platformio as it is being discussed here: platformio/platform-espressif32#497
Describe alternatives you've considered
-/-
Additional context
I am sadly quite unfamiliar with that kind of hardware development but if I can help with anything or test something on one of my boards, don't hesitate to ask! I also have a few spare ones, so If you'd really like to dig down that issue I can send you one of those ESP32-C3-DevKitM-1 for debugging/testing/development purposes.
Thank you for your hard work and effort to make WLED even better! :)
The text was updated successfully, but these errors were encountered: