MoonModules / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi! MoonModules adds features on top of upstream.
https://mm.kno.wled.ge
GNU General Public License v3.0
202 stars 64 forks source link

Cannot build for ESP32C3 #38

Closed Christanoid closed 1 year ago

Christanoid commented 1 year ago

What happened?

I used PlatformIO (also tried fully reinstalling PlatformIO including clearing all files at my user directiory/.platformIO, however I cannot get this to compile for either the seeed_esp32_c3_4MB_S or the esp32c3dev_4MB_M environments. Instead I always get the following message:

Platform Manager: espressif32@5.1.1 has been installed! Tool Manager: Installing espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch3 Error: Could not find the package with 'espressif/toolchain-riscv32-esp @ 8.4.0+2021r2-patch3' requirements for your system 'windows_amd64'

To Reproduce Bug

Download current master branch or MoonModules v0.14.0-b15, select seeed_esp32_c3_4MB_S or the esp32c3dev_4MB_M environments, try to build.

Expected Behavior

A successful compile ;)

Install Method

Self-Compiled or other

What version/release of MM WLED?

seeed_esp32_c3_4MB_S or esp32c3dev_4MB_M

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

softhack007 commented 1 year ago

Hi, yes its a known problem. Neither MM nor upstream WLED can be build at the moment for -C3, -S2, or -S3 on some machienes. It seems that espressif have messed up something in their toolchain repo.

Also we cannot "simply" use newer platform versions, due to instability problems observed on -C3 and -S2.

So it seems you have to wait for a few weeks, sorry 🤷

Christanoid commented 1 year ago

Hm, I see. Well guess i'll have to wait with my project, the precompiled C3.bin files I have been able to find unfortunately all bootloop on my Seeed Xiao Esp32c3.

softhack007 commented 1 year ago

There is a suggestion on how to fix it here, I'll give it a try in the next days.

softhack007 commented 1 year ago

It works now on github, can you try again on your PC?

Christanoid commented 1 year ago

Am currently on a family trip, will verify once back home later today!

Christanoid commented 1 year ago

Can confirm that it works with the patch you linked earlier. Now I only need to figure out the error in my Wiring that makes the LEDs flicker like crazy when using a logic level shifter and slightly when directly controlling from controller 😆

troyhacks commented 1 year ago

Can confirm that it works with the patch you linked earlier. Now I only need to figure out the error in my Wiring that makes the LEDs flicker like crazy when using a logic level shifter and slightly when directly controlling from controller 😆

Add a 50Ω to 100Ω resistor to your data line(s). That often sorts random flickering out.

Deep-dive explanation: https://www.youtube.com/watch?v=H4pFvqIxkhQ