boot/stm32: autodetect thumbv6, remove cargo feature.

This commit is contained in:
Dario Nieuwenhuis
2022-05-31 23:52:27 +02:00
parent 962fabe5c9
commit d13d893ff2
5 changed files with 8 additions and 4 deletions

View File

@ -76,7 +76,7 @@ impl<const PAGE_SIZE: usize> BootLoader<PAGE_SIZE> {
trace!("Loading app at 0x{:x}", start);
#[allow(unused_mut)]
let mut p = cortex_m::Peripherals::steal();
#[cfg(not(feature = "thumbv6"))]
#[cfg(not(armv6m))]
p.SCB.invalidate_icache();
p.SCB.vtor.write(start as u32);