From 21da942560863ed191953e1af2fbca66bcc29fb8 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sun, 2 Aug 2020 17:29:44 -0700 Subject: [PATCH] altos/stmf0, stm32f0: Call ao_boot_chain to start application This used to be done inside ao_boot_check_chain or ao_boot_check_pin, but it made more sense to have it done in _start instead. stm and lpc were adjusted, but stmf0 and stm32f4 were missed. This caused boards using this process to wedge in the boot loader. Signed-off-by: Keith Packard --- src/stm32f4/ao_interrupt.c | 5 ++++- src/stmf0/ao_interrupt.c | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/stm32f4/ao_interrupt.c b/src/stm32f4/ao_interrupt.c index 24f56abc..20577b14 100644 --- a/src/stm32f4/ao_interrupt.c +++ b/src/stm32f4/ao_interrupt.c @@ -45,8 +45,11 @@ void start(void) #ifdef AO_BOOT_CHAIN if (ao_boot_check_chain()) { #ifdef AO_BOOT_PIN - ao_boot_check_pin(); + if (ao_boot_check_pin()) #endif + { + ao_boot_chain(AO_BOOT_APPLICATION_BASE); + } } #endif /* Enable FPU */ diff --git a/src/stmf0/ao_interrupt.c b/src/stmf0/ao_interrupt.c index 3d7dc7a8..3ef51dfa 100644 --- a/src/stmf0/ao_interrupt.c +++ b/src/stmf0/ao_interrupt.c @@ -186,8 +186,11 @@ void _start(void) #if AO_BOOT_CHAIN if (ao_boot_check_chain()) { #if AO_BOOT_PIN - ao_boot_check_pin(); + if (ao_boot_check_pin()) #endif + { + ao_boot_chain(AO_BOOT_APPLICATION_BASE); + } } #endif /* Turn on syscfg */ -- 2.30.2