chore: Update components to support ESP-IDF v6.0#611
Open
Conversation
|
✅Static analysis result - no issues found! ✅ |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates several ESPP components and examples to build against ESP-IDF v6.0 by adjusting component dependencies and adding small compatibility shims for renamed/changed ESP-IDF APIs.
Changes:
- Update multiple component
REQUIRESlists to include the new ESP-IDF v6 split driver components (e.g.,esp_driver_gpio,esp_driver_spi,esp_driver_rmt, etc.). - Add ESP-IDF version-conditional code for API/constant changes (e.g., heap capability rename, LCD DPI config field changes, CLI console component selection).
- Minor code tweaks for toolchain/libc/API differences (e.g.,
modff, SPI transaction init, ADC attenuation constant).
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| components/ws-s3-touch/example/main/ws_s3_touch_example.cpp | Expands std::tm initialization used for RTC set-time in the example. |
| components/thermistor/example/main/thermistor_example.cpp | Updates ADC attenuation constant in the example. |
| components/t-deck/CMakeLists.txt | Adds ESP-IDF v6 driver component dependencies (I2S/SPI). |
| components/state_machine/example/main/Complex_generated_states.cpp | Removes dead/unreachable statements in generated switch blocks. |
| components/socket/src/socket.cpp | Uses modff for float fractional splitting. |
| components/rmt/CMakeLists.txt | Adds esp_driver_rmt dependency. |
| components/remote_debug/CMakeLists.txt | Adds esp_driver_gpio dependency. |
| components/neopixel/CMakeLists.txt | Adds esp_driver_gpio dependency. |
| components/mt6701/example/CMakeLists.txt | Adds esp_driver_spi to example component list. |
| components/motorgo-mini/src/motorgo-mini.cpp | Changes SPI transaction initialization to zero-init + field assignment. |
| components/motorgo-mini/CMakeLists.txt | Adds esp_driver_spi dependency. |
| components/monitor/src/heap_monitor.cpp | Adds IDF-version mapping for MALLOC_CAP_TCM → MALLOC_CAP_SPM in v6. |
| components/m5stack-tab5/src/video.cpp | Adds IDF-version conditionals for LCD DPI config and adjusts DSI bus config init. |
| components/m5stack-tab5/CMakeLists.txt | Adds ESP-IDF v6 driver component dependencies (I2S/SDMMC/SPI). |
| components/led/CMakeLists.txt | Adds esp_driver_ledc dependency. |
| components/interrupt/CMakeLists.txt | Adds esp_driver_gpio dependency. |
| components/esp32-timer-cam/CMakeLists.txt | Adds ESP-IDF v6 driver component dependencies (I2S/SPI). |
| components/esp-box/CMakeLists.txt | Adds esp_driver_i2s dependency. |
| components/encoder/CMakeLists.txt | Adds esp_driver_pcnt dependency. |
| components/cli/include/cli.hpp | Adds IDF-version conditional include for esp_vfs_usb_serial_jtag.h. |
| components/cli/CMakeLists.txt | Selects console-related component dependencies based on IDF major version. |
| components/bldc_driver/include/bldc_driver.hpp | Adds IDF/soc capability guards for MCPWM-related fields that differ across versions. |
| components/bldc_driver/CMakeLists.txt | Adds esp_driver_gpio and esp_driver_mcpwm dependencies. |
| components/adc/include/adc_types.hpp | Updates documentation comment for attenuation example value. |
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Update code (backwards compatible to
release/v1) to compile in ESP-IDF v6.0.Motivation and Context
Closese #610
Note: this doesn't make the upgrades to I2C (or other subsystems) necessary to remove the deprecation / EOL warnings. That will likely be breaking changes and will be targeted towards espp v2.x release in the very near future.
How has this been tested?
Screenshots (if appropriate, e.g. schematic, board, console logs, lab pictures):
Types of changes
Checklist:
Software
.github/workflows/build.ymlfile to add my new test to the automated cloud build github action.