Closed jakoblell closed 1 week ago
Thanks for providing your minimal reproducer.
Seems you are missing a heap allocator like it's done here: https://github.com/esp-rs/esp-hal/blob/39c0baf2c7bf3a45cd16a844f100c52d84c9b727/examples/src/bin/wifi_embassy_dhcp.rs#L59
For more information refer to the migration guide here: https://github.com/esp-rs/esp-hal/blob/v0.21.1/esp-wifi/MIGRATING-0.9.md#memory-allocation
In the upcoming version we'll provide a better error message in this case.
Going to close this issue - feel free to re-open if my suggestions don't fix the issue
Thanks for the suggestion, it indeed fixes the issue.
However it might still be a good idea to add compile-time safety for this (so that the code doesn't compile if the memory allocator is missing). If that is not possible it would also help to have at least a panic message with a clear indication of what the problem is.
Thanks for the suggestion, it indeed fixes the issue.
However it might still be a good idea to add compile-time safety for this (so that the code doesn't compile if the memory allocator is missing). If that is not possible it would also help to have at least a panic message with a clear indication of what the problem is.
I don't see a (good) way to get compile-time safety but in the upcoming release you will get a more helpful panic in this case
Bug description
After updating dependencies in a project (was quite a rabbit hole due to all the breaking API changes from the past couple of months) the WiFi initalization (function
esp_wifi::init
) fails with the errorStore/AMO access fault
, here is the full error log:To Reproduce
I've created a minimal test case to reproduce the issue:
Cargo.toml:
src/main.rs:
.cargo/config.toml:
Environment
rustc 1.82.0 (f6e511eec 2024-10-15)
) and nightly (rustc 1.84.0-nightly (fbab78289 2024-11-04)
)