Hi!
I'm moving my bootloader for STM32 from C to Rust.
How to write to the stm32f1 flash on Rust? That's easy on C using FLASH_Unlock()->FLASH_ErasePage()->FLASH_ProgramHalfWord()->FLASH_Lock(); but i didn't find similar on Rust.
How to jump from app of bootloaader to the main app? Example of C:
#[allow(unused_mut)]
let mut p = cortex_m::Peripherals::steal();
#[cfg(not(armv6m))]
p.SCB.invalidate_icache();
p.SCB.vtor.write(address as u32);
cortex_m::asm::bootload(address as *const u32);