mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
make psram workaround depend on chip revison
Since ESP32 revision 3, the PSRAM workaround is not needed.
This commit is contained in:
@ -138,7 +138,7 @@ config SPIRAM_MEMTEST
|
|||||||
|
|
||||||
config SPIRAM_CACHE_WORKAROUND
|
config SPIRAM_CACHE_WORKAROUND
|
||||||
bool "Enable workaround for bug in SPI RAM cache for Rev1 ESP32s"
|
bool "Enable workaround for bug in SPI RAM cache for Rev1 ESP32s"
|
||||||
depends on SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC
|
depends on (SPIRAM_USE_MEMMAP || SPIRAM_USE_CAPS_ALLOC || SPIRAM_USE_MALLOC) && (ESP32_REV_MIN < 3)
|
||||||
default "y"
|
default "y"
|
||||||
help
|
help
|
||||||
Revision 1 of the ESP32 has a bug that can cause a write to PSRAM not to take place in some situations
|
Revision 1 of the ESP32 has a bug that can cause a write to PSRAM not to take place in some situations
|
||||||
@ -149,6 +149,8 @@ config SPIRAM_CACHE_WORKAROUND
|
|||||||
This will also not use any bits of newlib that are located in ROM, opting for a version that is compiled
|
This will also not use any bits of newlib that are located in ROM, opting for a version that is compiled
|
||||||
with the workaround and located in flash instead.
|
with the workaround and located in flash instead.
|
||||||
|
|
||||||
|
The workaround is not required for ESP32 revision 3 and above.
|
||||||
|
|
||||||
config SPIRAM_MALLOC_ALWAYSINTERNAL
|
config SPIRAM_MALLOC_ALWAYSINTERNAL
|
||||||
int "Maximum malloc() size, in bytes, to always put in internal memory"
|
int "Maximum malloc() size, in bytes, to always put in internal memory"
|
||||||
depends on SPIRAM_USE_MALLOC
|
depends on SPIRAM_USE_MALLOC
|
||||||
|
Reference in New Issue
Block a user