File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ bool psramInit(){
53
53
#if CONFIG_IDF_TARGET_ESP32
54
54
uint32_t chip_ver = REG_GET_FIELD (EFUSE_BLK0_RDATA3_REG , EFUSE_RD_CHIP_VER_PKG );
55
55
uint32_t pkg_ver = chip_ver & 0x7 ;
56
- if (pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 || pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 || pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4 ) {
56
+ if (pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32D2WDQ5 || pkg_ver == EFUSE_RD_CHIP_VER_PKG_ESP32PICOD2 ) {
57
57
spiramFailed = true;
58
58
log_w ("PSRAM not supported!" );
59
59
return false;
@@ -67,8 +67,10 @@ bool psramInit(){
67
67
spiramFailed = true;
68
68
log_w ("PSRAM init failed!" );
69
69
#if CONFIG_IDF_TARGET_ESP32
70
- pinMatrixOutDetach (16 , false, false);
71
- pinMatrixOutDetach (17 , false, false);
70
+ if (pkg_ver != EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4 ) {
71
+ pinMatrixOutDetach (16 , false, false);
72
+ pinMatrixOutDetach (17 , false, false);
73
+ }
72
74
#endif
73
75
return false;
74
76
}
You can’t perform that action at this time.
0 commit comments