[Cryptech-Commits] [user/ft/stm32-dev-bridge] 04/05: Delay FMC startup to not upset the Novena at boot.
git at cryptech.is
git at cryptech.is
Wed Sep 2 14:58:32 UTC 2015
This is an automated email from the git hooks/post-receive script.
fredrik at thulin.net pushed a commit to branch master
in repository user/ft/stm32-dev-bridge.
commit 53e92f830110356f853b365041acc972a83faeef
Author: Fredrik Thulin <fredrik at thulin.net>
Date: Wed Sep 2 16:52:00 2015 +0200
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();
More information about the Commits
mailing list