Fix boot freeze when trying to init PSRAM on Pico D4 (#6434)
* Fix boot freeze when trying to init PSRAM on Pico D4 * Don't deconfigure GPIO16/17 in Pico D4
This commit is contained in:
parent
0b10c8b79e
commit
8fe0efe8c0
1 changed files with 4 additions and 2 deletions
|
|
@ -67,8 +67,10 @@ bool psramInit(){
|
||||||
spiramFailed = true;
|
spiramFailed = true;
|
||||||
log_w("PSRAM init failed!");
|
log_w("PSRAM init failed!");
|
||||||
#if CONFIG_IDF_TARGET_ESP32
|
#if CONFIG_IDF_TARGET_ESP32
|
||||||
pinMatrixOutDetach(16, false, false);
|
if (pkg_ver != EFUSE_RD_CHIP_VER_PKG_ESP32PICOD4) {
|
||||||
pinMatrixOutDetach(17, false, false);
|
pinMatrixOutDetach(16, false, false);
|
||||||
|
pinMatrixOutDetach(17, false, false);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue