Skip to content

Support for esp32-c3 #1940

Closed
Closed

Description

@danielclasen

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! :)

Activity

  1. Aircoookie commented on May 3, 2021

    @Aircoookie
    Member

    Hi!
    I can confirm that ESP32-C3 is not currently supported. We'll need to get decent Arduino Core support for it first, which usually takes a while. We are currently looking to get ESP32-S2 supported, and that has been out since 2019 :)
    Definitely will support the C3 though once the core becomes stable/usable.

  2. danielclasen commented on May 3, 2021

    @danielclasen
    Author

    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,
    Daniel

  3. frederictobiasc commented on Jun 25, 2021

    @frederictobiasc

    Hi @Aircoookie,
    the issue @danielclasen linked (platformio/platform-espressif32#497) was closed just a few days ago. Does this mean, supporting esp32-c3 could move forward?

  4. tony-fav commented on Sep 17, 2021

    @tony-fav

    Definitely tracking this issue now myself, starting to use more C3s in projects personally than 8266s.

  5. oldcrazyeye commented on Oct 15, 2021

    @oldcrazyeye

    I'm ready for the c3 to be supported as well. Especially with the ability to directly replace certain form factor esp8266 devices

  6. wantmoore commented on Oct 15, 2021

    @wantmoore

    Also following along. The 12F form factor compatibility makes this such an attractive chip for various projects.

  7. hutje commented on Dec 26, 2021

    @hutje

    Support for Esp32-C3 would be really useful.

  8. misery commented on Dec 28, 2021

    @misery
    Contributor

    Maybe someone wants to try it: #2454

    pio run -e esp32c3
    I can link a binary now. But I don't have a C3 yet.

    You should expect problems as it grabs a lot of "current development" branches.

  9. Linjieqiang commented on Mar 9, 2022

    @Linjieqiang

    Any news? @misery

  10. oldcrazyeye commented on Mar 9, 2022

    @oldcrazyeye

    I'm wondering the same! Have a bunch of c3's collecting dust over here

  11. misery commented on Mar 10, 2022

    @misery
    Contributor

    Well, it was merged into master branch. So you can start using it. :-)

  12. peturdainn commented on Apr 3, 2022

    @peturdainn

    I just tried WLED on an ESP32c3 (build from master branch), and I have 2 issues:

    1. the board I use (https://www.banggood.com/ESP32-C3-Development-Board-RISC-V-WiFi-Bluetooth-IoT-Development-Board-Compatible-with-Python-p-1914005.html) has 25 LEDs on GPIO 8, which I can use with the neopixel lib in Arduino, but WLED does not allow GPIO8.
      I changed the code that prevents using GPIO8, so config accepts 8 as LED GPIO but the LEDs do not work.

    2. As soon as I enter wifi settings, WLED seems to reboot at a regular interval (I see the AP come up and go away again), I do not see it in the client list of my AP.

    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

  13. misery commented on Apr 5, 2022

    @misery
    Contributor
    2. As soon as I enter wifi settings, WLED seems to reboot at a regular interval (I see the AP come up and go away again), I do not see it in the client list of my AP.
    

    Seems like this: #2518

  14. Jugrnot commented on Apr 7, 2022

    @Jugrnot

    Well, it was merged into master branch. So you can start using it. :-)

    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!

  15. 30 remaining items

  16. softhack007 commented on Mar 5, 2023

    @softhack007
    Member

    Soo, I'm following this and so far I have this output log... any idea?

    Yes /littlefs/ledmap*.json does not exist is expected behaviour. No problem.

  17. WAPEETY commented on Mar 5, 2023

    @WAPEETY

    Soo, I'm following this and so far I have this output log... any idea?

    Yes /littlefs/ledmap*.json does not exist is expected behaviour. No problem.

    Yes but it'repeted every second I think the ESP is bootlooping

  18. softhack007 commented on Mar 5, 2023

    @softhack007
    Member

    You mean the complete block including load:0x403d0000,len:0x24e4 entry 0x403ce000 is repeating, or just the open().... does not exist part?

    In both cases, you could build with -D WLED_DEBUG added to you build_flags, to get more information about what's happening.

  19. WAPEETY commented on Mar 5, 2023

    @WAPEETY

    the whole block I posted is repeating, btw I'll try wled debug ASAP

  20. WAPEETY commented on Mar 5, 2023

    @WAPEETY
    esp32 v4.4.2
    arduino-esp32 v2.0.5
    CPU:   ESP32-C3 rev.3, 1 core(s), 160MHz.
    FLASH: 4MB, Mode 3 (DOUT), speed 80MHz.
    heap 234504
    PIN ALLOC: Pin 21 successfully allocated by 0x89 (137)
    Registering usermods ...
    Reading config
    Reading settings from /wsec.json...
    JSON buffer locked. (3)
    JSON buffer released. (3)
    JSON buffer locked. (1)
    Reading settings from /cfg.json...
    Removing all.
    PIN ALLOC: Pin 0 successfully allocated by 0x85 (133)
    Starting usermod config.
    JSON buffer released. (1)
    Initializing strip
    [  2848][E][vfs_api.cpp:104] open(): /littlefs/ledmap1.json does not exist, no permits for creation
    [  2855][E][vfs_api.cpp:104] open(): /littlefs/ledmap2.json does not exist, no permits for creation
    [  2864][E][vfs_api.cpp:104] open(): /littlefs/ledmap3.json does not exist, no permits for creation
    [  2873][E][vfs_api.cpp:104] open(): /littlefs/ledmap4.json does not exist, no permits for creation
    [  2881][E][vfs_api.cpp:104] open(): /littlefs/ledmap5.json does not exist, no permits for creation
    [  2890][E][vfs_api.cpp:104] open(): /littlefs/ledmap6.json does not exist, no permits for creation
    [  2899][E][vfs_api.cpp:104] open(): /littlefs/ledmap7.json does not exist, no permits for creation
    [  2908][E][vfs_api.cpp:104] open(): /littlefs/ledmap8.json does not exist, no permits for creation
    [  2916][E][vfs_api.cpp:104] open(): /littlefs/ledmap9.json does not exist, no permits for creation
    [  2925][E][vfs_api.cpp:104] open(): /littlefs/ledmap10.json does not exist, no permits for creation
    [  2934][E][vfs_api.cpp:104] open(): /littlefs/ledmap11.json does not exist, no permits for creation
    [  2943][E][vfs_api.cpp:104] open(): /littlefs/ledmap12.json does not exist, no permits for creation
    [  2952][E][vfs_api.cpp:104] open(): /littlefs/ledmap13.json does not exist, no permits for creation
    [  2961][E][vfs_api.cpp:104] open(): /littlefs/ledmap14.json does not exist, no permits for creation
    [  2969][E][vfs_api.cpp:104] open(): /littlefs/ledmap15.json does not exist, no permits for creation
    No busses, init default
    PIN ALLOC: Pin 2 successfully allocated by 0x82 (130)
    Successfully inited strip 0 (len 30) with type 22 and pins 2,255 (itype 21)
    Loading custom palettes
    [  3000][E][vfs_api.cpp:104] open(): /littlefs/palette0.json does not exist, no permits for creation
    Loading custom ledmaps
    [  3013][E][vfs_api.cpp:104] open(): /littlefs/ledmap.json does not exist, no permits for creation
    Usermods setup
    IMPROV�����
    lastReconnectAttempt == 0
    No connection configured.
    Opening accessESP-ROM:esp32c3-api1-20210207
    Build:Feb  7 2021
    rst:0xf (BROWNOUT_RST),boot:0xc (SPI_FAST_FLASH_BOOT)
    SPIWP:0xee
    mode:DOUT, clock div:1
    load:0x3fcd6100,len:0x38c
    load:0x403ce000,len:0x6ac
    load:0x403d0000,len:0x24e4
    entry 0x403ce000
    
  21. lsiudut commented on Mar 5, 2023

    @lsiudut

    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.

  22. WAPEETY commented on Mar 5, 2023

    @WAPEETY

    Yess, I was using programmer 5v :)
    Seems to work, Thanks!

  23. WAPEETY commented on Mar 5, 2023

    @WAPEETY

    Ok so,

    • for some reason instead of using GPIO 2 (described by the board manufacturer) i'm using GPIO 10 (Idk if is a bug or not)

    but it seems to work...
    I'll investigate further on possible problems

    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

  24. metawops commented on Apr 25, 2023

    @metawops

    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. 😞)

  25. AllExHH commented on Apr 25, 2023

    @AllExHH
  26. blazoncek commented on Apr 25, 2023

    @blazoncek
    Contributor

    Dear people, please read all posts above.
    C3, S2 and S3 are supported, though still in experimental phase.
    You can compile sources yourself or use binaries provided by @srg74 or @wled-install

  27. metawops commented on Apr 25, 2023

    @metawops

    Thanks for the hint, @blazoncek – unfortunately, I still get the "... C3 board not supported" error from the https://wled-install.github.io/ page. 😞
    So I assume there's currently no installer web page available that automagically does everything for us, correct?
    Could you then please point me to a little tutorial on how to install a binary manually onto my Seeed ESP32-C3 board? (I'm on a Mac, btw.) That would be very kind! 😊
    Thank you! 🙏

  28. blazoncek commented on Apr 25, 2023

    @blazoncek
    Contributor

    Please join WLED forum or Discord for help and support questions.

  29. locked as resolved and limited conversation to collaborators on Apr 25, 2023
  30. added
    board request
    on Jan 5, 2024
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

    board requestenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions