Skip to content

Issues with ESP32-S2 Release v3.0.1(fastled 3.7) #1631

Closed

Description

@marcobrianza

Hello, building the example blink sketch on a loin esp32-s2 does not work anymore upgrading to ESP32 core 3.0.1 and fasteld 3.7

the errors are the following:

/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp: In member function 'void ESP32RMTController::tx_start()':
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:339:37: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'mem_rd_rst'
339 | RMT.conf_ch[mRMT_channel].conf1.mem_rd_rst = 1;
| ^~~~~~~~~~
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:340:37: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'mem_rd_rst'
340 | RMT.conf_ch[mRMT_channel].conf1.mem_rd_rst = 0;
| ^~~~~~~~~~
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:347:37: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'tx_start'
347 | RMT.conf_ch[mRMT_channel].conf1.tx_start = 1;
| ^~~~~~~~
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp: In static member function 'static void ESP32RMTController::doneOnChannel(rmt_channel_t, void*)':
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:400:32: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'tx_stop'
400 | RMT.conf_ch[channel].conf1.tx_stop = 1;
| ^~~~~~~
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:402:32: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'mem_rd_rst'
402 | RMT.conf_ch[channel].conf1.mem_rd_rst = 1;
| ^~~~~~~~~~
/Users/marco/Nextcloud-marco/Arduino/libraries/FastLED/src/platforms/esp/32/clockless_rmt_esp32.cpp:403:32: error: 'volatile union rmt_chnconf1_reg_t' has no member named 'mem_rd_rst'
403 | RMT.conf_ch[channel].conf1.mem_rd_rst = 0;
| ^~~~~~~~~~
Using library FastLED at version 3.7.0 in folder: /Users/marco/Nextcloud-marco/Arduino/libraries/FastLED
exit status 1
Error compiling for board LOLIN S2 Mini.

Activity

  1. samguyer commented on Jun 8, 2024

    @samguyer
    Contributor

    @marcobrianza Thanks for the heads-up. I have seen a few other issues with the new versions of FastLED and ESP-IDF. I'll take a look as soon as I can.

  2. jbry commented on Jun 12, 2024

    @jbry

    Looks like it works if you just update the following:

    Rename mem_rd_rst to mem_rd_rst_chn
    Rename tx_start to tx_start_chn
    Rename tx_stop to tx_stop_chn

  3. marcobrianza commented on Jun 14, 2024

    @marcobrianza
    Author

    @acalatrava with this fix S3 code compiles but S2 still produces errors in my test.

  4. tresler commented on Jun 27, 2024

    @tresler

    Thanks for jbry, Now on my ESP32S3 after changing clockless_rmt_esp32.cpp with mem_rd_rst_n to mem_rd_rst_chn I can comple and upload fastled example scatch. But now I have new problem:

    '''E (93) rmt(legacy): CONFLICT! driver_ng is not allowed to be used with the legacy driver
    abort() was called at PC 0x4200807b on core 0
    E (122) esp_core_dump_flash: Core dump flash config is corrupted! CRC=0x7bd5c66f instead of 0x0
    E (130) esp_core_dump_elf: Elf write init failed!
    E (135) esp_core_dump_common: Core dump write failed with error=-1'''

    Update: Maybe it can be problem with rmt legacy driver and USB-CDC on boot. I found, that new version of arduino-esp32 (3.0.3) will repairing by this define? Can someone comfirm it?

  5. jbry commented on Jul 9, 2024

    @jbry

    @tresler - I just pulled that commit into the file (as I was having that issue once I tried something besides one of the demos) - and that seemed to fix the issue. Read the comments at the top of the example though on how to clear the build cache to make sure you get the build_opt.h taken into account.

  6. egnor commented on Aug 5, 2024

    @egnor

    Yes, I believe even with the member names fixed, there's still an issue with use of the RMT legacy library conflicting with the new RMT library on arduino-esp32 v3.x / ESP-IDF v5.x.

    more discussion of RMT issues here: #1628
    also see related issues for the Adafruit library: adafruit/Adafruit_NeoPixel#375 (comment)

  7. zackees commented on Aug 8, 2024

    @zackees
    Member

    Compiler error fixed in FastLED 3.7.1 bugfix release.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions