* ```rust
const BOOTLOADER_ADDRESS: u32 = 0x1FF09800;
const BOOTLOADER_FLAG_VALUE: u32 = 0xB00110AD; // Bootload
#[link_section = ".uninit"]
static BOOTLOADER_FLAG: GroundedCell<u32> = GroundedCell::uninit();

pub fn set_flag_and_reboot() -> ! {
    critical_section::with(|_| {
        unsafe { BOOTLOADER_FLAG.get().write(BOOTLOADER_FLAG_VALUE) };
        cortex_m::peripheral::SCB::sys_reset();
    })
}
```