From 7709ee8accdc8600bb51235dfc38eac13cbfe074 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 16 Sep 2018 00:50:54 +0200 Subject: [PATCH] Fix H7 flash latency. * VOS1 ~1.2v the flash latency should be 2 cycles. --- src/cmsis/src/st/system_stm32fxxx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmsis/src/st/system_stm32fxxx.c b/src/cmsis/src/st/system_stm32fxxx.c index 77a920c09..35eaef0a1 100644 --- a/src/cmsis/src/st/system_stm32fxxx.c +++ b/src/cmsis/src/st/system_stm32fxxx.c @@ -230,7 +230,7 @@ void SystemClock_Config(void) RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; RCC_OscInitStruct.PLL.PLLR = 2; #elif defined (STM32H743xx)// 400MHz/48MHz - flash_latency = FLASH_LATENCY_4; + flash_latency = FLASH_LATENCY_2; RCC_OscInitStruct.PLL.PLLM = 3; RCC_OscInitStruct.PLL.PLLN = 200; RCC_OscInitStruct.PLL.PLLP = 2;