Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows user to bypass PSRAM test and boot faster with WROVER #6135

Merged
merged 2 commits into from
Jan 17, 2022

Conversation

SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Jan 13, 2022

Summary

Users have requested a way to make the WROVER module to boot faster.
It takes about 1 second to boot in a 4MB PSRAM configuration because of SPI RAM Test routine.

This PR adds a function to ESP32 Arduino that allows the user to programmatically tell Arduino not to spend time on PSRAM test. The default behavior is to test it.

The API is BYPASS_SPIRAM_TEST(bool)

Example:

BYPASS_SPIRAM_TEST(true);  // not declaring it or using BYPASS_SPIRAM_TEST(false) will run SPI RAM Test

void setup() {
  Serial.begin(115200);
  Serial.println("\n --- SPIRAM test bypass!");
  Serial.println("Check how long does it take to boot in a WROVER module.");
}

void loop() {
  static uint8_t count = 0;
  Serial.print("-");
  delay(500);
  if (++count == 32) {
    count = 0;
    Serial.println();
  }
}

Impact

The user decides if SPI RAM shall be tested before starting or not. This is not forced anymore by software.
Documentation is necessary (@pedrominatel)

Related links

Fixes #5737

@me-no-dev me-no-dev merged commit 1bbe61a into espressif:master Jan 17, 2022
@VojtechBartoska VojtechBartoska added this to the 2.0.3 milestone Jan 26, 2022
@SuGlider SuGlider deleted the spiram_test_bypass branch January 27, 2022 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modules with PSRAM take long to boot
3 participants