Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

Commit d5d0458

Browse files
committed
fixed REV3 DFU issue
1 parent ca9d161 commit d5d0458

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cores/arduino/rcc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,12 @@ void SetupClock() // to be setted properly
308308

309309
HAL_RCC_EnableCSS();
310310

311+
PeriphClkInitStruct.PeriphClockSelection = RCC_PERIPHCLK_LTDC;
312+
PeriphClkInitStruct.PLLSAI.PLLSAIN = 192;
313+
PeriphClkInitStruct.PLLSAI.PLLSAIR = 7;
314+
PeriphClkInitStruct.PLLSAIDivR = RCC_PLLSAIDIVR_2;
315+
HAL_RCCEx_PeriphCLKConfig(&PeriphClkInitStruct);
316+
311317
InitMCO1();
312318

313319
// save bus clock values

0 commit comments

Comments
 (0)