mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
cache: fix s2 dcache size 0 issue when psram disabled
This commit is contained in:
parent
d6844051fc
commit
e76c52d4df
@ -340,12 +340,10 @@ void IRAM_ATTR call_start_cpu0(void)
|
||||
/* If we need use SPIRAM, we should use data cache, or if we want to access rodata, we also should use data cache.
|
||||
Configure the mode of data : cache size, cache associated ways, cache line size.
|
||||
Enable data cache, so if we don't use SPIRAM, it just works. */
|
||||
#if CONFIG_SPIRAM_BOOT_INIT
|
||||
extern void esp_config_data_cache_mode(void);
|
||||
esp_config_data_cache_mode();
|
||||
Cache_Enable_DCache(0);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if CONFIG_IDF_TARGET_ESP32S3
|
||||
/* Configure the mode of instruction cache : cache size, cache line size. */
|
||||
|
@ -28,8 +28,7 @@ menu "Cache config"
|
||||
|
||||
choice ESP32S2_DATA_CACHE_SIZE
|
||||
prompt "Data cache size"
|
||||
default ESP32S2_DATA_CACHE_0KB if !SPIRAM
|
||||
default ESP32S2_DATA_CACHE_8KB if SPIRAM
|
||||
default ESP32S2_DATA_CACHE_8KB
|
||||
help
|
||||
Data cache size to be set on application startup.
|
||||
If you use 0KB data cache, the other 16KB will be added to the heap
|
||||
|
Loading…
x
Reference in New Issue
Block a user