experimental: more info about PSRAM and Flash

* PSRAM speed and transfer mode (serial only)
* added all possible modes and speed flags (-P4 included)
This commit is contained in:
Frank
2026-03-26 19:51:27 +01:00
parent 9fd2a51cf4
commit a70b945bce
2 changed files with 63 additions and 4 deletions

View File

@@ -1145,16 +1145,19 @@ void serializeInfo(JsonObject root)
root[F("tpsram")] = ESP.getPsramSize(); //WLEDMM
root[F("psram")] = ESP.getFreePsram();
root[F("psusedram")] = ESP.getMinFreePsram();
#if CONFIG_ESP32S3_SPIRAM_SUPPORT // WLEDMM -S3 has "qspi" or "opi" PSRAM mode
// WLEDMM -S3 has "qspi" or "opi" PSRAM mode, -P4 has "hex"
#if CONFIG_SPIRAM_MODE_OCT
root[F("psrmode")] = F("🚀 OPI");
#elif CONFIG_SPIRAM_MODE_QUAD
root[F("psrmode")] = F("qspi");
#elif CONFIG_SPIRAM_MODE_HEX
root[F("psrmode")] = F("🚀🚀 HEX");
#else
root[F("psrmode")] = F("dio");
#endif
#endif
}
#endif
#endif
// begin WLEDMM
#ifdef ARDUINO_ARCH_ESP32
@@ -1191,8 +1194,10 @@ void serializeInfo(JsonObject root)
case FM_QOUT: root[F("e32flashtext")] = F(" (QOUT)");break;
case FM_DIO: root[F("e32flashtext")] = F(" (DIO)"); break;
case FM_DOUT: root[F("e32flashtext")] = F(" (DOUT or other)");break;
#if defined(CONFIG_IDF_TARGET_ESP32S3) && CONFIG_ESPTOOLPY_FLASHMODE_OPI
#if CONFIG_ESPTOOLPY_FLASHMODE_OPI
case FM_FAST_READ: root[F("e32flashtext")] = F(" (🚀OPI)");break;
#elif CONFIG_ESPTOOLPY_FLASHMODE_HEX
case FM_FAST_READ: root[F("e32flashtext")] = F(" (🚀🚀HEX)");break;
#else
case FM_FAST_READ: root[F("e32flashtext")] = F(" (fast_read)");break;
#endif