From 3bf7de5cf7d92ef9657aa6ce0f6978dbfcb3e1f9 Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Sat, 29 Jun 2019 16:28:38 +0000 Subject: [PATCH] Refs #843. Moved call to LedBlinkExit() in the demo programs. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@701 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- .../Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/hooks.c | 4 ++-- .../Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/hooks.c | 4 ++-- .../ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/hooks.c | 4 ++-- .../Boot/hooks.c | 4 ++-- Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/hooks.c | 5 ++--- .../ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/hooks.c | 5 ++--- .../ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/hooks.c | 5 ++--- .../ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/hooks.c | 5 ++--- .../ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/hooks.c | 5 ++--- .../ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/hooks.c | 5 ++--- Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/hooks.c | 5 ++--- .../ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/hooks.c | 5 ++--- 23 files changed, 46 insertions(+), 65 deletions(-) diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/hooks.c index 3dfbc148..7067d13b 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/hooks.c @@ -79,8 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -91,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/hooks.c index a1add945..689900b6 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/hooks.c @@ -79,8 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -91,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/hooks.c index 84f9b554..e242dbe9 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/hooks.c @@ -79,8 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -91,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/hooks.c index 44172639..417dabc6 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/hooks.c @@ -79,8 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -91,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/hooks.c index ec470391..3b55f2f5 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/hooks.c @@ -79,9 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -92,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/hooks.c index 5375add8..054a32af 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/hooks.c @@ -79,9 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -92,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/hooks.c index 3c87f2ed..ddaded6c 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/hooks.c @@ -79,9 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -92,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/hooks.c index afc86801..29a3638e 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/hooks.c @@ -79,9 +79,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -92,6 +89,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c index cf6c096f..c2406867 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/hooks.c @@ -80,9 +80,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -93,6 +90,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/hooks.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/hooks.c index 9472b544..dd8f0489 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/hooks.c @@ -80,9 +80,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -93,6 +90,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/hooks.c index 4455b7e2..2bc9bec4 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/hooks.c @@ -80,9 +80,6 @@ blt_bool BackDoorEntryHook(void) ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep it pressed during reset. */ @@ -93,6 +90,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/hooks.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/hooks.c index a3f0f512..206cbb9d 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the D1 digital input on the board. to * force the bootloader to stay active after reset, connect D1 to ground. */ @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/hooks.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/hooks.c index 7071ce65..8e396043 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the D1 digital input on the board. to * force the bootloader to stay active after reset, connect D1 to ground. */ @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/hooks.c index 0ca68765..40d34155 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the D1 digital input on the board. to * force the bootloader to stay active after reset, connect D1 to ground. */ @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/hooks.c index bfd36d27..b7c7c138 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton digital input on the * board. to force the bootloader to stay active after reset, keep it pressed during * reset for at least BOOT_BACKDOOR_ENTRY_TIMEOUT_MS. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/hooks.c index 7208c7d9..d1fec0d7 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton digital input on the * board. to force the bootloader to stay active after reset, keep it pressed during * reset for at least BOOT_BACKDOOR_ENTRY_TIMEOUT_MS. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/hooks.c index cc2d8896..b918eae8 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton digital input on the * board. to force the bootloader to stay active after reset, keep it pressed during * reset for at least BOOT_BACKDOOR_ENTRY_TIMEOUT_MS. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/hooks.c index 1fc16a29..0e39126f 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/hooks.c index 71e60089..84425c33 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/hooks.c index 06d74897..ee36f639 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/hooks.c @@ -51,9 +51,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -65,6 +62,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/hooks.c index e20c53fa..f5438d13 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/hooks.c @@ -50,9 +50,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/hooks.c index e4ee6cea..efa0dd8b 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/hooks.c @@ -50,9 +50,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/ diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/hooks.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/hooks.c index 6b5e2468..8d5ff7f1 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/hooks.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/hooks.c @@ -50,9 +50,6 @@ ****************************************************************************************/ blt_bool CpuUserProgramStartHook(void) { - /* clean up the LED driver */ - LedBlinkExit(); - /* additional and optional backdoor entry through the pushbutton on the board. to * force the bootloader to stay active after reset, keep the pushbutton pressed while * resetting the microcontroller. @@ -64,6 +61,8 @@ blt_bool CpuUserProgramStartHook(void) */ return BLT_FALSE; } + /* clean up the LED driver */ + LedBlinkExit(); /* okay to start the user program.*/ return BLT_TRUE; } /*** end of CpuUserProgramStartHook ***/