Skip to content

Commit 8fe0efe

Browse files
authored
Fix boot freeze when trying to init PSRAM on Pico D4 (espressif#6434)
* Fix boot freeze when trying to init PSRAM on Pico D4 * Don't deconfigure GPIO16/17 in Pico D4
1 parent 0b10c8b commit 8fe0efe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: cores/esp32/esp32-hal-psram.c

+4-2
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ bool psramInit(){
6767
spiramFailed = true;
6868
log_w("PSRAM init failed!");
6969
#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+
}
7274
#endif
7375
return false;
7476
}

0 commit comments

Comments
 (0)