diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.c index e6b3380007..8f7409a57c 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L432xC/TARGET_NUCLEO_L432KC/system_clock.c @@ -45,7 +45,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -147,8 +147,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c index e6b3380007..8f7409a57c 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L433xC/TARGET_NUCLEO_L433RC_P/system_clock.c @@ -45,7 +45,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -147,8 +147,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/TARGET_MTB_ADV_WISE_1510/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/TARGET_MTB_ADV_WISE_1510/system_clock.c index e6b3380007..8f7409a57c 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/TARGET_MTB_ADV_WISE_1510/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L443xC/TARGET_MTB_ADV_WISE_1510/system_clock.c @@ -45,7 +45,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -147,8 +147,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_clock.c index 6e959a9da5..4c232a41c3 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L475xG/TARGET_DISCO_L475VG_IOT01A/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_DISCO_L476VG/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_DISCO_L476VG/system_clock.c index 6e959a9da5..4c232a41c3 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_DISCO_L476VG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_DISCO_L476VG/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_NUCLEO_L476RG/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_NUCLEO_L476RG/system_clock.c index 6e959a9da5..4c232a41c3 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_NUCLEO_L476RG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_NUCLEO_L476RG/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/system_clock.c index 6e959a9da5..4c232a41c3 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L476xG/TARGET_SILICA_SENSOR_NODE/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_MTB_ADV_WISE_1570/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_MTB_ADV_WISE_1570/system_clock.c index 6d9e310be4..09fdb7c9e9 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_MTB_ADV_WISE_1570/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_MTB_ADV_WISE_1570/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_NUCLEO_L486RG/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_NUCLEO_L486RG/system_clock.c index ba758b2bc7..8e2272547c 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_NUCLEO_L486RG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L486xG/TARGET_NUCLEO_L486RG/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/system_clock.c index 2943dc51cc..cddb9c174a 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_DISCO_L496AG/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } } diff --git a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_NUCLEO_L496ZG/system_clock.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_NUCLEO_L496ZG/system_clock.c index 2943dc51cc..cddb9c174a 100644 --- a/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_NUCLEO_L496ZG/system_clock.c +++ b/targets/TARGET_STM/TARGET_STM32L4/TARGET_STM32L496xG/TARGET_NUCLEO_L496ZG/system_clock.c @@ -32,7 +32,7 @@ #include "stm32l4xx.h" #include "nvic_addr.h" -#include "mbed_assert.h" +#include "mbed_error.h" /*!< Uncomment the following line if you need to relocate your vector Table in Internal SRAM. */ @@ -134,8 +134,8 @@ void SetSysClock(void) if (SetSysClock_PLL_MSI() == 0) #endif { - while (1) { - MBED_ASSERT(1); + { + error("SetSysClock failed\n"); } } }