fix(esp32p4 with idf-v6.0): compiling errors with ESP-IDF v6.0 on ESP32-P4: outdated esp-dsp dependency and mbedtls/aes.h #297
Closed
shengt25 wants to merge 2 commits intoespressif:masterfrom
Closed
fix(esp32p4 with idf-v6.0): compiling errors with ESP-IDF v6.0 on ESP32-P4: outdated esp-dsp dependency and mbedtls/aes.h #297shengt25 wants to merge 2 commits intoespressif:masterfrom
shengt25 wants to merge 2 commits intoespressif:masterfrom
Conversation
…DF v6.0 ESP-IDF v6.0 upgrades mbedtls to v4.x (TF-PSA-Crypto), which removes mbedtls/aes.h from the public API. Use compile-time version detection to select PSA Crypto API (psa/crypto.h) for IDF >= 6.0 and keep the legacy mbedtls_aes_* path for IDF < 6.0.
esp-dsp 1.8.0 includes a fix for kalman filter modules (ekf.cpp), which caused build errors on ESP-IDF v6.0. Require 1.8.0 as the minimum to ensure IDF v6.0 compatibility.
Collaborator
|
@shengt25 , thanks for your PR. It looks good. We will support idf 6.0 in the next release. |
Collaborator
|
@shengt25 |
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
mbedtls/aes.h removed from public API: IDF v6.0 upgrades mbedtls to v4.x (TF-PSA-Crypto).
Fix: use PSA Crypto API for IDF >= 6.0, retaining the original
mbedtls_aes_*path for IDF < 6.0.esp-dsp 1.7.0 incompatible with IDF v6.0: kalman filter modules in esp-dsp 1.7.0 is not compatible with IDF v6.0, causing
std::cos/std::sinto be undeclared.Fix: bump dependency to esp-dsp 1.8.0 which contains the fix. (was fixed in esp-dsp v1.7.1, see commit espressif/esp-dsp@23ee959)
esp.vsld.8 and vldbc_8_ip illegal operands also prevents compiling with esp32p4 (rev 1.0) and IDF v6.0. However this is fixed in pull request #294 (not merged yet at the moment)
Related
Issue: #295
Pull request: #294
Testing
Tested with IDF v6.0 and IDF v5.5.1 on esp32p4 (rev 1.0), both compilied successfully.
Tested with mobilenet-v2,
espdlmodel loading and inferernce are successful.Checklist
Before submitting a Pull Request, please ensure the following: