File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,12 @@ config ESP_SPIRAM_HEAP_SIZE
3030 help
3131 Specify size of SPIRAM heap.
3232
33+ config ESP_SPIRAM_MEMTEST
34+ bool "Run memory test on SPI RAM initialization"
35+ default y
36+ help
37+ Runs a memory test on initialization. Disable this for faster startup.
38+
3339choice SPIRAM_MODE
3440 prompt "Mode (QUAD/OCT) of SPI RAM chip in use"
3541 default SPIRAM_MODE_QUAD
Original file line number Diff line number Diff line change @@ -40,10 +40,12 @@ void esp_init_psram(void)
4040 ets_printf ("External RAM size is less than configured.\n" );
4141 }
4242
43- if (esp_psram_is_initialized ()) {
44- if (!esp_psram_extram_test ()) {
45- ets_printf ("External RAM failed memory test!" );
46- return ;
43+ if (IS_ENABLED (CONFIG_ESP_SPIRAM_MEMTEST )) {
44+ if (esp_psram_is_initialized ()) {
45+ if (!esp_psram_extram_test ()) {
46+ ets_printf ("External RAM failed memory test!" );
47+ return ;
48+ }
4749 }
4850 }
4951
You can’t perform that action at this time.
0 commit comments