From b786f198d58a2707ea5b721a92fddc7d40d8409b Mon Sep 17 00:00:00 2001 From: Frank Voorburg Date: Wed, 3 May 2023 10:29:06 +0000 Subject: [PATCH] Refs #1785. Corrected flash latency configuration in Nucleo-G474RE demo programs. git-svn-id: https://svn.code.sf.net/p/openblt/code/trunk@1050 5dc33758-31d5-4daf-9ae8-b24bf3d40d73 --- Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_GCC/Boot/main.c | 5 ++--- Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_IAR/Boot/main.c | 5 ++--- Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_Keil/Boot/main.c | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_GCC/Boot/main.c b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_GCC/Boot/main.c index 845f39b6..5fa772c6 100644 --- a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_GCC/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_GCC/Boot/main.c @@ -101,8 +101,7 @@ static void SystemClock_Config(void) LL_FLASH_SetLatency(LL_FLASH_LATENCY_4); while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_4) { - /* Error setting flash latency. */ - ASSERT_RT(BLT_FALSE); + ; } /* Enable boost mode and the HSE clock. */ @@ -149,7 +148,7 @@ static void SystemClock_Config(void) /* Update the time base */ if (HAL_InitTick (TICK_INT_PRIORITY) != HAL_OK) { - /* Error setting flash latency. */ + /* Error updating the time base. */ ASSERT_RT(BLT_FALSE); } diff --git a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_IAR/Boot/main.c b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_IAR/Boot/main.c index 5ada5b67..033b5032 100644 --- a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_IAR/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_IAR/Boot/main.c @@ -98,8 +98,7 @@ static void SystemClock_Config(void) LL_FLASH_SetLatency(LL_FLASH_LATENCY_4); while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_4) { - /* Error setting flash latency. */ - ASSERT_RT(BLT_FALSE); + ; } /* Enable boost mode and the HSE clock. */ @@ -146,7 +145,7 @@ static void SystemClock_Config(void) /* Update the time base */ if (HAL_InitTick (TICK_INT_PRIORITY) != HAL_OK) { - /* Error setting flash latency. */ + /* Error updating the time base. */ ASSERT_RT(BLT_FALSE); } diff --git a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_Keil/Boot/main.c b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_Keil/Boot/main.c index c4d69f4b..aea68bf3 100644 --- a/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_Keil/Boot/main.c +++ b/Target/Demo/ARMCM4_STM32G4_Nucleo_G474RE_Keil/Boot/main.c @@ -101,8 +101,7 @@ static void SystemClock_Config(void) LL_FLASH_SetLatency(LL_FLASH_LATENCY_4); while(LL_FLASH_GetLatency() != LL_FLASH_LATENCY_4) { - /* Error setting flash latency. */ - ASSERT_RT(BLT_FALSE); + ; } /* Enable boost mode and the HSE clock. */ @@ -149,7 +148,7 @@ static void SystemClock_Config(void) /* Update the time base */ if (HAL_InitTick (TICK_INT_PRIORITY) != HAL_OK) { - /* Error setting flash latency. */ + /* Error updating the time base. */ ASSERT_RT(BLT_FALSE); }