Open
Conversation
Including esp_idf_compat.h
Importing libraries for ESP-IDF v4 and v5 I use as guide the way they do it to MQQT: https://github.com/espressif/esp-mqtt/blob/master/include/mqtt_supported_features.h
Adding ESP-IDF Compatibilty section
Adding how the examples where tested
|
'REQUIRES spi_flash' is required to support esp-idf 5.2.0 and possibly later |
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.
The latest stable ESP-IDF version is
5.1.1so reading the issues and Pull Request I added the necessary changes for the code to support5.X.Xand4.X.X.#17 I took in consideration both message in the pull request
#18 I added the information provided by @KikyTokamuro in this issue
I only have installed ESP-IDF v5.1.1 so I haven't test if this changes work in ESP-IDF v4.X.X, but it should.
Also adding the information in the Readme allows people to understand everything easily
I was able to compile console, sd_mmc, and spiffs, though, I only tested with the board the spiffs example.
For the case of sd_spi example I could not make it work because of changes between version
4.X.Xand5.X.Xof ESP-IDF like changingsdspi_slot_config_ttosdspi_device_config_t, which changes the structure and haven't search more on it.I have been using ESP-IDF Visual Studio Code Extension
v1.6.5for the compilation and for it to work I had to change the main/CMakeLists.txt file commenting the lineidf_build_component(esp32-idf-sqlite3). Also, the file CMakeLists.txt (in root) had to be updated, commenting the lineinclude($ENV{IDF_PATH}/tools/cmake/idf.cmake)and decommentinginclude($ENV{IDF_PATH}/tools/cmake/project.cmake). I also updated the cmake minimum version to 3.16 because the examples from ESP-IDF have that versionEdit: I was able to test successfully console and sd_mmc examples