mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-14 20:10:18 +03:00
parent
75bafb7b71
commit
9d5fa7311e
12 changed files with 306 additions and 9 deletions
|
@ -3757,7 +3757,11 @@ static void cliMsc(char *cmdline)
|
|||
mpuResetFn();
|
||||
}
|
||||
|
||||
*((uint32_t *)0x2001FFF0) = 0xDDDD1010; // Same location as bootloader magic but different value
|
||||
#ifdef STM32F7
|
||||
*((__IO uint32_t*) BKPSRAM_BASE + 16) = MSC_MAGIC;
|
||||
#elif defined(STM32F4)
|
||||
*((uint32_t *)0x2001FFF0) = MSC_MAGIC;
|
||||
#endif
|
||||
|
||||
__disable_irq();
|
||||
NVIC_SystemReset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue