diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/main.c index 2a17d73e..ebe14b19 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_GCC/Boot/main.c @@ -195,6 +195,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/main.c index 51403bed..0dfdc36c 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_IAR/Boot/main.c @@ -192,6 +192,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/main.c index 554f7c30..dac6784d 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_Keil/Boot/main.c @@ -195,6 +195,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/main.c index 3605fd37..53865426 100644 --- a/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Discovery_STM32F051_TrueStudio/Boot/main.c @@ -195,6 +195,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOC, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/main.c index 8386ae3a..c66cf9c6 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_GCC/Boot/main.c @@ -212,6 +212,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/main.c index 9edb9440..73502005 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_IAR/Boot/main.c @@ -209,6 +209,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/main.c index 7178cd51..dfb17517 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_Keil/Boot/main.c @@ -212,6 +212,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/main.c b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/main.c index 0d1be8a4..c6756631 100644 --- a/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM0_STM32F0_Nucleo_F091RC_TrueStudio/Boot/main.c @@ -212,6 +212,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c index 66456564..771245d4 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_GCC/Boot/main.c @@ -197,6 +197,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c index 0070b5ac..351625e9 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_IAR/Boot/main.c @@ -194,6 +194,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c index b082f5cc..351b756c 100644 --- a/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Nucleo_F103RB_TrueStudio/Boot/main.c @@ -197,6 +197,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_Crossworks/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_Crossworks/Boot/main.c index 4cba303a..39c8946c 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_Crossworks/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_Crossworks/Boot/main.c @@ -196,6 +196,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_GCC/Boot/main.c index 477a40ed..6e54c78b 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_GCC/Boot/main.c @@ -196,6 +196,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_IAR/Boot/main.c index ae94c33c..9283f550 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_IAR/Boot/main.c @@ -193,6 +193,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_TrueStudio/Boot/main.c index 9c428981..8b2e3790 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32H103_TrueStudio/Boot/main.c @@ -196,6 +196,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOA); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Crossworks/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Crossworks/Boot/main.c index 078ef9b5..885d9446 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Crossworks/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Crossworks/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_GCC/Boot/main.c index 0ece92ba..051d5a92 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_GCC/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_IAR/Boot/main.c index fb7cb4d8..e6e92552 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_IAR/Boot/main.c @@ -231,6 +231,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Keil/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Keil/Boot/main.c index 5b4598fe..bf4c611a 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Keil/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_Keil/Boot/main.c @@ -233,6 +233,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_TrueStudio/Boot/main.c index 81be4d53..1202977e 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimex_STM32P103_TrueStudio/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_GCC/Boot/main.c index d408b03d..fa06c328 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_GCC/Boot/main.c @@ -225,6 +225,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOD); LL_GPIO_DeInit(GPIOC); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_IAR/Boot/main.c index 5333773d..c8a25b50 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_IAR/Boot/main.c @@ -222,6 +222,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOD); LL_GPIO_DeInit(GPIOC); diff --git a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_TrueStudio/Boot/main.c index 5c0ec111..1895ca7e 100644 --- a/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F1_Olimexino_STM32_TrueStudio/Boot/main.c @@ -225,6 +225,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOD); LL_GPIO_DeInit(GPIOC); diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c index 9ce0f079..43fdbde4 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_GCC/Boot/main.c @@ -233,6 +233,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/main.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/main.c index 803216b8..4fbf440d 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_IAR/Boot/main.c @@ -230,6 +230,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/main.c b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/main.c index bfcfd021..b221a121 100644 --- a/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM3_STM32F2_Olimex_STM32P207_TrueStudio/Boot/main.c @@ -233,6 +233,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOF, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_GCC/Boot/main.c index ea591ee6..8f161155 100644 --- a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_GCC/Boot/main.c @@ -203,6 +203,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_IAR/Boot/main.c index edee34b2..d5eeac12 100644 --- a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_IAR/Boot/main.c @@ -200,6 +200,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_TrueStudio/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_TrueStudio/Boot/main.c index d6a80a80..14c963bf 100644 --- a/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Discovery_F303VC_TrueStudio/Boot/main.c @@ -203,6 +203,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOE, LL_GPIO_PIN_8); diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/main.c index 1cf8e2ba..95fcf244 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_GCC/Boot/main.c @@ -214,6 +214,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3); diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/main.c index b176997b..44a58f6a 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_IAR/Boot/main.c @@ -211,6 +211,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3); diff --git a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/main.c b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/main.c index ffd6cdf6..3f7da400 100644 --- a/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F3_Nucleo_F303K8_TrueStudio/Boot/main.c @@ -214,6 +214,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_3); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_GCC/Boot/main.c index a9a869ad..917b9827 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_GCC/Boot/main.c @@ -239,6 +239,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_IAR/Boot/main.c index 55fb1351..ceed9d0e 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_IAR/Boot/main.c @@ -236,6 +236,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_TrueStudio/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_TrueStudio/Boot/main.c index 9d1fc763..b4bed9b6 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32E407_TrueStudio/Boot/main.c @@ -239,6 +239,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Deinit used GPIOs. */ LL_GPIO_DeInit(GPIOC); LL_GPIO_DeInit(GPIOB); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/main.c index 3c7d0a36..15689983 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_GCC/Boot/main.c @@ -254,6 +254,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + #if (BOOT_COM_USB_ENABLE > 0) /* USB clock disable. */ LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_IAR/Boot/main.c index e5b7f262..18651b48 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_IAR/Boot/main.c @@ -251,6 +251,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + #if (BOOT_COM_USB_ENABLE > 0) /* USB clock disable. */ LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS); diff --git a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_TrueStudio/Boot/main.c b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_TrueStudio/Boot/main.c index e4361419..3a30aa44 100644 --- a/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32F4_Olimex_STM32P405_TrueStudio/Boot/main.c @@ -254,6 +254,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + #if (BOOT_COM_USB_ENABLE > 0) /* USB clock disable. */ LL_AHB2_GRP1_DisableClock(LL_AHB2_GRP1_PERIPH_OTGFS); diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/main.c index 8239c6dd..c31041db 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_GCC/Boot/main.c @@ -222,6 +222,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/main.c index 6124da45..0ebd3716 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_IAR/Boot/main.c @@ -219,6 +219,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/main.c b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/main.c index 066bbdf7..edace935 100644 --- a/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32L4_Nucleo_L476RG_TrueStudio/Boot/main.c @@ -222,6 +222,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOA, LL_GPIO_PIN_5); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/main.c index 959a2260..88b512f5 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_GCC/Boot/main.c @@ -235,6 +235,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/main.c index cbaff13f..dce75fdd 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_IAR/Boot/main.c @@ -232,6 +232,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_Keil/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_Keil/Boot/main.c index 58b448d0..aab4c91b 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_Keil/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_Keil/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/main.c index e67dcbdd..c8fba2c3 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F746ZG_TrueStudio/Boot/main.c @@ -235,6 +235,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + LL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ LL_GPIO_ResetOutputPin(GPIOB, LL_GPIO_PIN_7); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/main.c index 3e01175b..2e3b7d5c 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_GCC/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + HAL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/main.c index 66956e93..87003249 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_IAR/Boot/main.c @@ -231,6 +231,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + HAL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_Keil/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_Keil/Boot/main.c index 7d14d205..351618c5 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_Keil/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_Keil/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + HAL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET); diff --git a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/main.c b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/main.c index 88e3b7f0..5903b605 100644 --- a/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/main.c +++ b/Target/Demo/ARMCM7_STM32F7_Nucleo_F767ZI_TrueStudio/Boot/main.c @@ -234,6 +234,9 @@ void HAL_MspInit(void) ****************************************************************************************/ void HAL_MspDeInit(void) { + /* Reset the RCC clock configuration to the default reset state. */ + HAL_RCC_DeInit(); + /* Reset GPIO pin for the LED to turn it off. */ HAL_GPIO_WritePin(GPIOB, GPIO_PIN_7, GPIO_PIN_RESET);