1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

DFU mode via CLI for F1 and F3

This commit is contained in:
blckmn 2016-09-03 19:04:58 +10:00
parent cab020ba30
commit e338279be4
3 changed files with 28 additions and 2 deletions

View file

@ -196,9 +196,9 @@ void checkForBootLoaderRequest(void)
*((uint32_t *)0x2001FFFC) = 0x0;
__enable_irq();
__set_MSP(0x20001000);
__set_MSP(*((uint32_t *)0x1FFF0000));
bootJump = (void(*)(void))(*((uint32_t *) 0x1fff0004));
bootJump = (void(*)(void))(*((uint32_t *) 0x1FFF0004));
bootJump();
while (1);
}