Merge pull request #11030 from SteveCEvans/f7_flash_lockup
This commit is contained in:
commit
4537f0c394
|
@ -76,7 +76,7 @@ static void checkForBootLoaderRequest(void)
|
|||
if (bootloaderRequest != RESET_BOOTLOADER_REQUEST_ROM) {
|
||||
return;
|
||||
}
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_BOOTLOADER_POST);
|
||||
|
||||
__SYSCFG_CLK_ENABLE();
|
||||
SYSCFG->MEMRMP |= SYSCFG_MEM_BOOT_ADD0 ;
|
||||
|
|
|
@ -313,6 +313,13 @@ void OverclockRebootIfNecessary(uint32_t overclockLevel)
|
|||
*/
|
||||
void SystemInit(void)
|
||||
{
|
||||
uint32_t bootloaderRequest = persistentObjectRead(PERSISTENT_OBJECT_RESET_REASON);
|
||||
|
||||
if (bootloaderRequest == RESET_BOOTLOADER_POST) {
|
||||
persistentObjectWrite(PERSISTENT_OBJECT_RESET_REASON, RESET_NONE);
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
|
||||
initialiseMemorySections();
|
||||
|
||||
SystemInitOC();
|
||||
|
|
Loading…
Reference in New Issue