We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a4cfcf commit ff13865Copy full SHA for ff13865
examples/serial_dma.rs
@@ -21,6 +21,15 @@ fn main() -> ! {
21
let dp = pac::Peripherals::take().unwrap();
22
23
let mut flash = dp.FLASH.constrain();
24
+
25
+ // https://github.com/probe-rs/probe-rs/issues/350#issuecomment-740550519
26
+ dp.DBGMCU.cr.modify(|_, w| {
27
+ w.dbg_sleep().set_bit();
28
+ w.dbg_standby().set_bit();
29
+ w.dbg_stop().set_bit()
30
+ });
31
+ dp.RCC.ahbenr.modify(|_, w| w.dma1en().enabled());
32
33
let mut rcc = dp.RCC.constrain();
34
let clocks = rcc.cfgr.freeze(&mut flash.acr);
35
0 commit comments