bugfix(psram): configure MMU after PSRAM initialization

This commit is contained in:
chenjianqiang
2020-07-03 22:08:44 +08:00
parent f092054f3d
commit bff6b5b70e
3 changed files with 8 additions and 3 deletions

View File

@@ -127,7 +127,7 @@ esp_spiram_size_t esp_spiram_get_chip_size(void)
{
if (!spiram_inited) {
ESP_EARLY_LOGE(TAG, "SPI RAM not initialized");
return ESP_SPIRAM_SIZE_INVALID;
abort();
}
psram_size_t psram_size = psram_get_size();
switch (psram_size) {