zephyrproject-rtos / zephyr

Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
https://docs.zephyrproject.org
Apache License 2.0
10.49k stars 6.42k forks source link

ESP32S3: Octal SPI RAM support #64757

Open tyalie opened 10 months ago

tyalie commented 10 months ago

Currently it is not possible to use the ESP32S3 variants with 8MB PSRAM. See issue #64510. For me it breaks the use of PSRAM on the XIAO ESP32S3 boards I want to use.

The solution would be to be able to use PSRAM with octal spi.

lgl88911 commented 10 months ago

Any plans to support PSRAM for ESP32-S3? It's an important feature for this platform.

rftafas commented 9 months ago

@lgl88911 Octal PSRAM should be available when Zephyr starts supporting hal 5.1 - we are taking care of some regressions to make it usable as 'pre-alfa' in order to share a WIP / Draft PR.

laurin commented 8 months ago

Hey, is this still the latest status?

rftafas commented 8 months ago

@laurin yes, it is. We are wrapping up the last issues on hal5. You can try the current wip: https://github.com/zephyrproject-rtos/zephyr/pull/65942

jadejr commented 1 month ago

This is the PR https://github.com/zephyrproject-rtos/zephyr/pull/68760 for hal 5.1 that ended up being merged.

So, is this issue still valid? How would you enable it if you were using 3.7?

rftafas commented 1 month ago

PTAL CONFIG_SPIRAM_MODE_OCT

https://docs.zephyrproject.org/latest/kconfig.html#CONFIG_SPIRAM_MODE_OCT

You also need to enable PSRAM normally and do all other proper configurations.

Even though the implementation has bugs, I think this can be closed.