Skip to content

Commit 53bbd79

Browse files
hexagonal-suneldruin
authored andcommitted
examples: blink-timer-irq: fix clock panic
The example sets the frequency of the pclk1 to an out-of-bounds frequency which causes the example to panic in all instancies. Set to a frequency that is in-range. Tested on: STM32F746G-DISCO
1 parent f11d4a4 commit 53bbd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/blinky-timer-irq.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ fn main() -> ! {
6767
let dp = Peripherals::take().unwrap();
6868

6969
let rcc = dp.RCC.constrain();
70-
let clocks = rcc.cfgr.sysclk(16.MHz()).pclk1(8.MHz()).freeze();
70+
let clocks = rcc.cfgr.sysclk(16.MHz()).pclk1(13.MHz()).freeze();
7171

7272
// Configure PA5 pin to blink LED
7373
let gpioa = dp.GPIOA.split();

0 commit comments

Comments
 (0)