Open daagaak opened 1 month ago
I think this is because the esp32 HAL PSRAM code assumes that you're running in 40mhz Flash/40mhz PSRAM mode:
Could you try changing this locally in esp-hal and seeing if with the correct mode it works?
Yes is does. I've been running with it set (unconditionally) to PsramCacheF80S80
since yesterday and it seems to work reliably.
I think the comment // How to make this configurable
is the key thing - we could use (another) cargo-feature for it but ideally, we should have #1111
I've been experiencing some erratic behaviour in my ESP32 trying to enable PSRAM on my WROOM-E module (confirmed to have an 8MB PSRAM module).
Attempting to synthesize this down to a broken test case, I generated a new esp-template project, and replaced the heap section with:
And changed the
init_heap
call to be:This actually works as expected when you espflash with the default settings. However, if you bump up the flash speed to 80mhz with
-f 80mhz
then I've seen it either:LoadProhibited
during PSRAM initIllegalInstruction
during PSRAM init.I think this is because the esp32 HAL PSRAM code assumes that you're running in 40mhz Flash/40mhz PSRAM mode: