mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 07:44:03 -04:00
AP_Bootloader: allow flash to be unprotected from the bootloader
This commit is contained in:
parent
c01b1801c8
commit
b32638b29e
@ -76,6 +76,10 @@ int main(void)
|
|||||||
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
|
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAL_FLASH_PROTECTION
|
||||||
|
stm32_flash_unprotect_flash();
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NO_FASTBOOT
|
#ifndef NO_FASTBOOT
|
||||||
enum rtc_boot_magic m = check_fast_reboot();
|
enum rtc_boot_magic m = check_fast_reboot();
|
||||||
bool was_watchdog = stm32_was_watchdog_reset();
|
bool was_watchdog = stm32_was_watchdog_reset();
|
||||||
|
Loading…
Reference in New Issue
Block a user