Skip to content
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

FastLED 3.6.0 blink sketch does not compile for an ESP32-C6 on Arduino IDE 2.3.2 #1623

Open
JanvidW opened this issue May 18, 2024 · 4 comments

Comments

@JanvidW
Copy link

JanvidW commented May 18, 2024

I get the following error when trying to upload to an esp32 c6 dev board. I think this might be because the c6 is not currently supported?

.../FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:349:6: error: #error Not yet implemented for unknown ESP32 target
349 | #error Not yet implemented for unknown ESP32 target
| ^~~~~
.../FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:415:6: error: #error Not yet implemented for unknown ESP32 target
415 | #error Not yet implemented for unknown ESP32 target
| ^~~~~
.../FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:461:10: error: #error Not yet implemented for unknown ESP32 target
461 | #error Not yet implemented for unknown ESP32 target
| ^~~~~

The part above can be fixed by including a case for the c6 in clockless_rmt_esp32.cpp but the errors below remain

In file included from .../Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32c6/include/esp_system/include/esp_system.h:14,
from .../Arduino15/packages/esp32/hardware/esp32/3.0.0-rc3/cores/esp32/esp32-hal.h:32,
from .../Arduino/libraries/FastLED/src/platforms/esp/32/led_sysdefs_esp32.h:2,
from .../Arduino/libraries/FastLED/src/led_sysdefs.h:42,
from.../Arduino/libraries/FastLED/src/FastLED.h:55,
from .../Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:7:
.../FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp: In static member function 'static void ESP32RMTController::interruptHandler(void*)':
.../FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:466:31: error: 'tx_next_bit' was not declared in this scope
466 | if (intr_st & BIT(tx_next_bit)) {
| ^~~~~~~~~~~
.../Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32c6/include/esp_common/include/esp_bit_defs.h:79:42: note: in definition of macro 'BIT'
79 | #define BIT(nr) (1UL << (nr))
| ^~
.../Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:472:35: error: 'tx_done_bit' was not declared in this scope
472 | if (intr_st & BIT(tx_done_bit)) {
| ^~~~~~~~~~~
.../Arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-442a798083/esp32c6/include/esp_common/include/esp_bit_defs.h:79:42: note: in definition of macro 'BIT'
79 | #define BIT(nr) (1UL << (nr))
| ^~

exit status 1

Compilation error: exit status 1

@JanvidW JanvidW changed the title FastLED 3.6.0 blink sketch does not compile for an ESP32-C6 FastLED 3.6.0 blink sketch does not compile for an ESP32-C6 on Arduino IDE 2.3.2 May 18, 2024
@samguyer
Copy link
Contributor

@JanvidW Would you mind trying out a fix for this problem and letting me know how it goes? I can walk you through it.

@JanvidW
Copy link
Author

JanvidW commented May 27, 2024

Hi Sam thanks for getting back to me, I’ll be happy to try out a fix for this.

@netmindz
Copy link

Looks like S3 is the closest match, just with slightly different names, e.g tx_stop_chn vs tx_stop_n

@netmindz
Copy link

Tried to hack something together #1627

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants