-
Notifications
You must be signed in to change notification settings - Fork 95
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
[ESP32] esp-wifi crash if used with embassy and any task on the second core #412
Comments
Interesting thing here is that it works fine on ESP32-S3 |
Even running just an empty loop on the second core makes it crash. |
This is really weird - I can make it not crash anymore by commenting out https://github.com/esp-rs/esp-wifi/blob/ce4264907916bc3c1a3406075c9d3c0e05cb89d3/esp-wifi/src/lib.rs#L144 - i.e. NOT placing the wifi heap in dram2 segment While this solves the issue I have no idea why - @MabezDev any idea what might be special about dram2_segment? |
I tried something: In esp-hal multicore example I zero all bytes in dram2_segment, run the code and check if those bytes are still zero ..... they are not. There are at least ~16k of non-zero bytes in the beginning of that segment. Unfortunately, just letting dram2_segment start at a 16k higher address doesn't solve the problems here |
@liebman When you get a chance, could you test the linked PR and see if it fixes your issue? |
Still crashes :-(
|
I've updated the gist so that its based on updated |
@liebman there hasn't been a release since it was fixed, could you try from git main? Sorry, I wasn't clear! |
|
Ah, I forgot about those breaking changes. Well I think I've solved this regardless, but next release we can test again :). |
On esp32 if any embassy task is started on the second core it crashes.
Code to reproduce is here in this gist
crashes with:
The text was updated successfully, but these errors were encountered: