mirror of
https://github.com/0xFEEDC0DE64/arduino-esp32.git
synced 2025-08-01 11:44:27 +02:00
Allows user to bypass PSRAM test and boot faster with WROVER (#6135)
Fixes #5737
This commit is contained in:
@@ -35,6 +35,13 @@
|
||||
static volatile bool spiramDetected = false;
|
||||
static volatile bool spiramFailed = false;
|
||||
|
||||
//allows user to bypass SPI RAM test routine
|
||||
__attribute__((weak)) bool testSPIRAM(void)
|
||||
{
|
||||
return esp_spiram_test();
|
||||
}
|
||||
|
||||
|
||||
bool psramInit(){
|
||||
if (spiramDetected) {
|
||||
return true;
|
||||
@@ -66,7 +73,8 @@ bool psramInit(){
|
||||
return false;
|
||||
}
|
||||
esp_spiram_init_cache();
|
||||
if (!esp_spiram_test()) {
|
||||
//testSPIRAM() allows user to bypass SPI RAM test routine
|
||||
if (!testSPIRAM()) {
|
||||
spiramFailed = true;
|
||||
log_e("PSRAM test failed!");
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user