Open MabezDev opened 8 months ago
Ah we actually configure something for S3, didn't knew that 🤔 Oh - that was me
Ah we actually configure something for S3, didn't knew that 🤔 Oh - that was me
Is the DCACHE only enabled when using the PSRAM driver?
I think for most targets the second stage bootloader will enable it and use whatever was configured when building it For S3 (something I re-learned) we always configure it in esp-hal. It's a bit inconsistent IMHO
Copied from https://github.com/esp-rs/esp-hal/issues/954#issuecomment-1816696280
We could replace this piece of code (which is currently hardcoded) with a proper cache driver.
One limitation we have is that I don't think any of the cache registers are in the SVDs - but it looks like there is only one register with just a few bits: https://github.com/espressif/esp-idf/blob/c8243465e45489835d645bf217a6929fd0c01b7f/components/esp_mm/include/esp_cache.h#L21-L47