-
Notifications
You must be signed in to change notification settings - Fork 251
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
Static linking in psram. Is there support or what is needed for it? #1083
Comments
There are currently no plans to use PSRAM for anything but heap memory. PRs are welcome |
Why was it removed here? |
It was never really supported ... e.g. we never actually zeroed |
Added a draft for this. I will be glad for any help |
I had some discussion with my coworkers today and realized that there is a huge benefit to this (PSRAM XIP): The PSRAM has much lower latency than the flash, so ICACHE misses will be much faster! XREF #1096 for example. Also per official docs: https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-reference/kconfig.html#config-spiram-fetch-instructions |
@ProfFan I am curious about this conclusion, could you please explain it further? AFAICT, provided that Flash and PSRAM use same SPI bus width and frequency, read latencies would be the same (plus-minus a couple of dummy cycles after the address phase). |
It's written in the official docs: https://docs.espressif.com/projects/esp-idf/en/stable/esp32s3/api-reference/kconfig.html#config-spiram-fetch-instructions Also quote from docs:
|
Hello. Are there any plans to add a linking attribute to psram?
As in idf:
#[link_section = ".ext_ram.bss.****"]
The text was updated successfully, but these errors were encountered: