AP_Bootloader: allow flash to be unprotected from the bootloader

This commit is contained in:
Andy Piper 2022-02-18 21:32:37 +00:00 committed by Peter Barker
parent c01b1801c8
commit b32638b29e

View File

@ -76,6 +76,10 @@ int main(void)
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
#endif
#ifdef HAL_FLASH_PROTECTION
stm32_flash_unprotect_flash();
#endif
#ifndef NO_FASTBOOT
enum rtc_boot_magic m = check_fast_reboot();
bool was_watchdog = stm32_was_watchdog_reset();