Merge pull request #964 from openmv/sdram_test

Update SDRAM test.
This commit is contained in:
Ibrahim Abd Elkader 2020-11-13 21:29:59 +02:00 committed by GitHub
commit 3b02fe5fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 14 deletions

@ -1 +1 @@
Subproject commit 2156f107766ee77fcde80b012331de586007d01c
Subproject commit 500ccb16d9da99b2a692e90af083f27b45d63495

View File

@ -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