Updated crates for the fimrware part
This commit is contained in:
parent
475e9621a1
commit
ceb4dc035f
5 changed files with 489 additions and 570 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use core::{mem::MaybeUninit, ptr::addr_of_mut};
|
||||
use core::mem::MaybeUninit;
|
||||
|
||||
use stm32f4xx_hal::pac;
|
||||
|
||||
|
|
@ -9,7 +9,7 @@ fn jump_to_bootloader() {
|
|||
let address: u32 = 0x1FFF0000;
|
||||
|
||||
let device = pac::Peripherals::steal();
|
||||
device.SYSCFG.memrm.modify(|_, w| w.bits(0x01));
|
||||
device.SYSCFG.memrmp().modify(|_, w| w.bits(0x01));
|
||||
|
||||
let mut p = cortex_m::Peripherals::steal();
|
||||
p.SCB.invalidate_icache();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue