-
Notifications
You must be signed in to change notification settings - Fork 226
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
HW SHA Calculation Error in esp32c3-hal #1607
Comments
Is adding If just linking |
Only add to config.toml file causes the issue, esp-wifi initialization is not necessary. |
Ok this is wild! I was able to track it down to:
This will replace Rust's Most probably we can remove those things from esp-wifi's Still, I wonder how exactly the implementation differ |
I cannot reproduce this issue anymore |
I'm currently working on a project based on the ESP32-C3 platform and utilizing the esp-wifi library. As per the library's requirements, I've added link-arg=-Trom_functions.x to the /.cargo/config.toml file. However, I've encountered an unexpected issue: the Hardware-accelerated SHA (HW SHA) calculation results from the esp32c3-hal library are incorrect after making this modification.
What's puzzling is that when applying the same configuration, specifically link-arg=-Trom_functions.x, to the ESP32-S3 platform, the Hardware-accelerated SHA calculation works as expected without any errors.
To diagnose this, I've also tried using the code provided in the https://github.com/esp-rs/esp-hal/blob/main/esp32c3-hal/examples/sha.rs example, and the issue still persists.
Could you please help me understand why the Hardware-accelerated SHA calculation is encountering errors in ESP32-C3, while ESP32-S3 does not exhibit this issue under the same configuration? Is there something I might be overlooking or not handling correctly in my setup?
The text was updated successfully, but these errors were encountered: