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

On ESP32 esp-storage doesn't work together with PSRAM (psram feature flag enabled) #3229

Open
yanshay opened this issue Mar 6, 2025 · 0 comments
Labels
bug Something isn't working status:needs-attention This should be prioritized

Comments

@yanshay
Copy link
Contributor

yanshay commented Mar 6, 2025

Bug description

On ESP32 When trying to read from flash storage using esp-storage, data isn't read correctly if psram feature flag is enabled.
More detailed information is available in: #3220

A summary of the technical root cause from @bjoernQ in that discussion:

esp-storage is accessing SPI0 and SPI1 directly on ESP32 and having PSRAM enabled might get them into unexpected states.

For S2/S3 we are using ROM-functions which apparently account for that

To Reproduce

The example at examples/src/bin/flash_read_write.rs doesn't work if psram is enabled.

Environment

  • Target device: ESP32
  • Crate name and version: 0.23.1 and main
@yanshay yanshay added bug Something isn't working status:needs-attention This should be prioritized labels Mar 6, 2025
@github-project-automation github-project-automation bot moved this to Todo in esp-rs Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working status:needs-attention This should be prioritized
Projects
Status: Todo
Development

No branches or pull requests

1 participant