8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a62979d commit c3b3a1dCopy full SHA for c3b3a1d
cores/esp32/Esp.cpp
@@ -270,7 +270,17 @@ const char * EspClass::getChipModel(void)
270
return "Unknown";
271
}
272
#elif CONFIG_IDF_TARGET_ESP32S2
273
- return "ESP32-S2";
+ uint32_t pkg_ver = REG_GET_FIELD(EFUSE_RD_MAC_SPI_SYS_3_REG, EFUSE_PKG_VERSION);
274
+ switch (pkg_ver) {
275
+ case 0:
276
+ return "ESP32-S2";
277
+ case 1:
278
+ return "ESP32-S2FH16";
279
+ case 2:
280
+ return "ESP32-S2FH32";
281
+ default:
282
+ return "ESP32-S2 (Unknown)";
283
+ }
284
#elif CONFIG_IDF_TARGET_ESP32S3
285
return "ESP32-S3";
286
#elif CONFIG_IDF_TARGET_ESP32C3
0 commit comments