From b44761598d7af52a0b45cef777f1710c75c501ad Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Fri, 13 Nov 2020 21:21:00 +0200 Subject: [PATCH] Update SDRAM test. * Make test more useful if cache is enabled. * Make test call __fatal_error with more verbose messages. --- src/micropython | 2 +- src/omv/main.c | 13 ------------- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/src/micropython b/src/micropython index 2156f1077..500ccb16d 160000 --- a/src/micropython +++ b/src/micropython @@ -1 +1 @@ -Subproject commit 2156f107766ee77fcde80b012331de586007d01c +Subproject commit 500ccb16d9da99b2a692e90af083f27b45d63495 diff --git a/src/omv/main.c b/src/omv/main.c index 631abad26..d3826f4bf 100644 --- a/src/omv/main.c +++ b/src/omv/main.c @@ -416,9 +416,6 @@ int main(void) { #if MICROPY_HW_SDRAM_SIZE bool sdram_ok = false; - #if MICROPY_HW_SDRAM_STARTUP_TEST - bool sdram_pass = false; - #endif #endif #if MICROPY_HW_ENABLE_SDCARD bool sdcard_mounted = false; @@ -442,9 +439,6 @@ int main(void) #if MICROPY_HW_SDRAM_SIZE sdram_ok = sdram_init(); - #if MICROPY_HW_SDRAM_STARTUP_TEST - sdram_pass = sdram_test(false); - #endif #endif // Basic sub-system init @@ -660,13 +654,6 @@ soft_reset: snprintf(buf, sizeof(buf), "Failed to init sdram!"); __fatal_error(buf); } - #if MICROPY_HW_SDRAM_STARTUP_TEST - if (first_soft_reset && (!sdram_pass)) { - char buf[512]; - snprintf(buf, sizeof(buf), "SDRAM failed testing!"); - __fatal_error(buf); - } - #endif #endif // Turn boot-up LEDs off