Skip to content
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

ESP32C6 Wifi API with cmake project #501

Closed
mzakharocsc opened this issue Oct 16, 2024 · 5 comments
Closed

ESP32C6 Wifi API with cmake project #501

mzakharocsc opened this issue Oct 16, 2024 · 5 comments

Comments

@mzakharocsc
Copy link

Hello, I am using esp32c6 with IDF 5.2.2. I followed the following cmake build tutorial :
https://github.com/esp-rs/esp-idf-template/blob/master/README-cmake.md

However, I cannot access wifi libraries. I get the following compile error:

103 | pub mod wifi;
    |         ^^^^
note: the item is gated here    |
97  | / #[cfg(all(
98  | |     not(esp32h2),
99  | |     feature = "alloc",
100 | |     esp_idf_comp_esp_wifi_enabled,
101 | |     esp_idf_comp_esp_event_enabled,
102 | | ))]

I saw soluiton in #307 but it does not seem to apply to cmake based projects. Any help would be kindly appreciated.

@ivmarkov
Copy link
Collaborator

Did you read and do this?

@mzakharocsc
Copy link
Author

Did you read and do this?

Yes, my list of components is the following:

set(RUST_DEPS "pthread" "driver" "vfs" "esp_http_client" "esp_http_server" "espcoredump" "nvs_flash" "spi_flash" "mqtt")

with app_update did not even compile, but thats a story for another issue.

@ivmarkov
Copy link
Collaborator

Did you read and do this?

Yes, my list of components is the following:

set(RUST_DEPS "pthread" "driver" "vfs" "esp_http_client" "esp_http_server" "espcoredump" "nvs_flash" "spi_flash" "mqtt")

with app_update did not even compile, but thats a story for another issue.

Have you tried putting esp_wifi in that list?

@mzakharocsc
Copy link
Author

Thank you for your help. The following list of dependencies was needed to get basic wifi example working:
"esp_wifi" "esp_event" "wpa_supplicant" "esp_netif" "lwip"

As for app_update, bootloader_support was needed as well.

@github-project-automation github-project-automation bot moved this from Todo to Done in esp-rs Oct 20, 2024
@ivmarkov
Copy link
Collaborator

Yes. These components weren't necessary in the 4.4. days, probably because they were enabled by the others. With esp idf 5 the situation might had changed, but the approach remains the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants