-
Notifications
You must be signed in to change notification settings - Fork 7.3k
LittleFS Flash operation fail when enable 80MHz PSRAM on ESP32S3 #87938
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
Comments
@sylvioalves FYI |
Seems that esp specific implementation for erase returned internal code 261. Check that code first and does PSRAM actually support erase in the first place? |
PSRAM doesn't support erase, but both SPIRAM (aka PSRAM) and SPI Flash are on the same SPI1 bus and this issue only seems to affect certain combinations of octal and quad modes, so it may be some missing configuration in the Espressif HAL. |
@de-nordic Flash operation is ROM code, so i dont have source code for those functions. The header file also does not give detail about return value. |
The issue seems more related to the architecture limitation where the Flash and PSRAM share the same bus reference. |
There was no PSRAM operation (I assume since the example is not supposed to use psram). So i'm not sure if this is arch limitation. |
That is true. My sample breaks even without PSRAM. It only accesses the Flash. Maybe it is a problem with the flash driver. When I enable the PSRAM, it breaks almost simultaneously when the collision happens on the bus. Without PSRAM, it takes a long time, but it breaks and shows the same message. In my case: I have written this sample to confirm that the collision would break the code, and it does. |
@phb98 80MHz is currently crashing indeed. Please use 40MHz if your application support it. |
@sylvioalves in my project, setting psram to 40MHZ does not fix it.
I ran LittleFS example with the same storage partition of my project and the example also fail even if psram is 40mhz. I'm not sure if this new issue is related to this issue.
|
Can you try using QUAD instead? |
@sylvioalves it fail to boot up main application
|
OK, thanks for reporting. Let me re-check. |
Hi @sylvioalves, do you have update on this issue ? |
Describe the bug
Running LittleFS Sample. When enable those config to enable 80mhz psram on ESP32S3 N16R8
The example will fail to mount file system
Disable
CONFIG_SPIRAM_SPEED_80M
and the sample runs succesfully againTo Reproduce
-Enable and set PSRAM size to 8M in Devicetree
-Build LittleFS example with above configs and run.
Expected behavior
-Example runs successfully with 80mhz psram
Impact
Logs and console output
This is the log of fail run
Environment (please complete the following information):
ESP32S3 n16r8 build as esp32s3_devkitc board with modifed psram node.
Zephyr v4.1
Additional context
The text was updated successfully, but these errors were encountered: