-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp_app_desc!() causing: warning: unexpected cfg
condition name: esp_idf_app_compile_time_date
etc.
#365
Comments
I believe my panic maybe well be related, it seems that since the If remove the If I rebuild my app for esp32s3, then I get the correct EDIT: I should point out that for the esp32c6, if I comment out the part where I grab the |
You are simply using a newer To cut the long story short, these warnings are harmless (albeit annoying). Until we fix these by properly declaring our
This has nothing to do with the warnings from above, and if indeed that happens, it must be chip specific, as I'm pretty sure on the s3 and on the stock esp32 it works just fine. I would hypothesize is that the reason for the error is that this link section has an incorrect name for the c6 (and maybe other riscvs?) and there, it must be something else. Essentially, it must match whatever link section is used in the ESP-IDF code for the same definition (the one in ESP-IDF is with a "weak" linkage attr definition, so we override it essentially). The weird thing is, in ESP-IDF I see the same link section name regardless of the chip type, so really, are you sure it breaks for you (a) only with the c6 (b) only when you use the macro? |
What I would also suggest is - as a test - to try using An easy way to install and use |
Thank you for the explanation of the warnings for I used
The above is
FWIW, a quick attempt to
|
Bug description
I had an existing project that had
esp_app_desc!()
in it'smain.rs
. After updating the esp-idf-* crates, I find I get a series of warnings for a number of cfg conditions related to esp_app_desc!:... and so on.
This is somewhat beyond my burgeoning Rust skills!
To Reproduce
cargo generate esp-rs/esp-idf-template cargo
1.1. Enter a test project name
1.2. Chose
esp32c6
as the MCU1.3. Chose
Configure advanced template options
1.4. Picked
v5.3
1.5. Picked
false
for the restcargo add esp-idf-sys
main.rs
add:esp_idf_sys::esp_app_desc!();
Then try to build with
cargo build
.I'm actually working on OTA updates and I'm seeing a runtime panic (a UTF8 error it seems) inside esp-idf-svc's
ota.rs:196
where it's trying to get the version string:I'm not entirely sure if this related, but it surely seems coincidental.
Expected behavior
No warnings. This compiled ok in prior versions.
Environment
The text was updated successfully, but these errors were encountered: