Update SDRAM test.

* Make test more useful if cache is enabled.
* Make test call __fatal_error with more verbose messages.
This commit is contained in:
iabdalkader 2020-11-13 21:21:00 +02:00
parent 19014e07fa
commit b44761598d
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