From 53e92f830110356f853b365041acc972a83faeef Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Wed, 2 Sep 2015 16:52:00 +0200 Subject: Delay FMC startup to not upset the Novena at boot. For some unknown reason, Novenas seems to not boot unless the initialization of the FMC interface is delayed for a little while. --- src/fmc-test/src/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/fmc-test/src/main.c b/src/fmc-test/src/main.c index 872c182..69c5bb0 100644 --- a/src/fmc-test/src/main.c +++ b/src/fmc-test/src/main.c @@ -58,6 +58,7 @@ int test_fpga_address_bus(void); int main(void) //------------------------------------------------------------------------------ { + int i; // initialize hal HAL_Init(); @@ -67,6 +68,13 @@ int main(void) // initialize gpio MX_GPIO_Init(); + // Blink blue LED for six seconds to not upset the Novena at boot. + led_on(GPIO_PIN_LED_BLUE); + for (i = 0; i < 12; i++) { + HAL_Delay(500); + led_toggle(GPIO_PIN_LED_BLUE); + } + // initialize rng MX_RNG_Init(); -- cgit v1.2.3