We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e0f8b84 commit cbafe67Copy full SHA for cbafe67
cores/esp32/esp32-hal-psram.c
@@ -51,6 +51,11 @@ bool psramInit(){
51
log_w("PSRAM not supported!");
52
return false;
53
}
54
+#elif CONFIG_IDF_TARGET_ESP32S2
55
+ extern void esp_config_data_cache_mode(void);
56
+ esp_config_data_cache_mode();
57
+ Cache_Enable_DCache(0);
58
+#endif
59
if (esp_spiram_init() != ESP_OK) {
60
spiramFailed = true;
61
log_w("PSRAM init failed!");
@@ -61,11 +66,6 @@ bool psramInit(){
66
62
67
63
68
esp_spiram_init_cache();
64
-#elif CONFIG_IDF_TARGET_ESP32S2
65
- extern void esp_config_data_cache_mode(void);
- esp_config_data_cache_mode();
- Cache_Enable_DCache(0);
-#endif
69
if (!esp_spiram_test()) {
70
71
log_e("PSRAM test failed!");
0 commit comments