Skip to content

feat: ESP-IDF v6.0 support#2

Open
Sped0n wants to merge 4 commits into
m5stack:feature/esp-idf-native-supportfrom
Sped0n:idf-v6
Open

feat: ESP-IDF v6.0 support#2
Sped0n wants to merge 4 commits into
m5stack:feature/esp-idf-native-supportfrom
Sped0n:idf-v6

Conversation

@Sped0n
Copy link
Copy Markdown

@Sped0n Sped0n commented May 29, 2026

Change Overview

  • Add ESP-IDF version-aware component dependencies in CMakeLists.txt.
  • Keep ESP-IDF v5.x using the legacy driver dependency.
  • Use split ESP-IDF v6 driver components such as esp_driver_gpio, esp_driver_i2c, esp_driver_spi, esp_driver_uart, esp_driver_rmt, and related dependencies.
  • Build the component as C++17 for native ESP-IDF builds. (m5_utility/murmurhash3.hpp:140:30: error: space between quotes and suffix is deprecated in C++23 [-Werror=deprecated-literal-operator])
  • Fix ESP-IDF v6 GPIO compatibility by including the needed GPIO register header.
  • Guard use of the removed io_loop_back GPIO configuration field so it is only used before ESP-IDF v6.
  • Include FreeRTOS explicitly where portMAX_DELAY is used by the SPI adapter.

Testing

Tested with a temporary native ESP-IDF project targeting esp32c6.

Passed:

  • idf.py set-target esp32c6 build with ESP-IDF v5.5.3
  • idf.py set-target esp32c6 build with ESP-IDF v6.0

@Sped0n Sped0n force-pushed the idf-v6 branch 2 times, most recently from 7bc0acc to 6012495 Compare May 29, 2026 13:05
Sped0n added 4 commits May 29, 2026 21:10
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
Signed-off-by: Zhibin (Ryan) Wen <wenzhibin@espressif.com>
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

Successfully merging this pull request may close these issues.

1 participant