Skip to content

esp32 board 3.0.0-alpha2: The legacy RMT driver is deprecated #8780

Closed
@chlordk

Description

@chlordk

Board

ESP32C3 Dev Module

Device Description

https://github.com/01Space/ESP32-C3-0.42LCD/blob/main/README.md
ESP32-C3-0 42LCD

Hardware Configuration

No

Version

latest development Release Candidate (RC-X)

IDE Name

Arduino IDE 2.2.1

Operating System

Linux Mint 21.1

Flash frequency

80MHz

PSRAM enabled

yes

Upload speed

921600

Description

My goal is to get the ws2812 LED to lit up.

I'm testing with File -> Examples -> WS2812FX -> auto_mode_cycle.

Installing latest Board "esp32 by Espressif Systems" version 3.0.0-alpha2 I get the error:

In file included from /home/joe/Arduino/libraries/Adafruit_NeoPixel/esp.c:23:
/home/joe/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32c3/include/driver/deprecated/driver/rmt.h:18:2
18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h"

When running the code (anyway, despite the warning) I got a core-dump in the serial monitor.

I tried to change the file Arduino/libraries/Adafruit_NeoPixel/esp.c from:

#include "driver/rmt.h"
to
#include "driver/rmt-tx.h"
without luck.

Work around

Downgrade board to "esp32 by Espressif Systems 2.0.14" and it is working.

Sketch

// ws2812fx/auto_mode_cycle.ino
#include <WS2812FX.h>

#define LED_COUNT 1
#define LED_PIN 2

#define TIMER_MS 5000

// Parameter 1 = number of pixels in strip
// Parameter 2 = Arduino pin number (most are valid)
// Parameter 3 = pixel type flags, add together as needed:
…  now = millis();

  ws2812fx.service();

  if(now - last_change > TIMER_MS) {
    ws2812fx.setMode((ws2812fx.getMode() + 1) % ws2812fx.getModeCount());
    last_change = now;
  }
}

Debug Message

In file included from /home/joe/Arduino/libraries/Adafruit_NeoPixel/esp.c:23:
/home/joe/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32c3/include/driver/deprecated/driver/rmt.h:18:2: warning: #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h" [-Wcpp]
   18 | #warning "The legacy RMT driver is deprecated, please use driver/rmt_tx.h and/or driver/rmt_rx.h"

Other Steps to Reproduce

Downgrade board to "esp32 by Espressif Systems 2.0.14" and it is working.

I have checked existing issues, online documentation and the Troubleshooting Guide

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.0 migrationissue relates to migration from 2.X to 3.X version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions