mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
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:
parent
19014e07fa
commit
b44761598d
@ -1 +1 @@
|
||||
Subproject commit 2156f107766ee77fcde80b012331de586007d01c
|
||||
Subproject commit 500ccb16d9da99b2a692e90af083f27b45d63495
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user