Implement JumpToBootloader() based on Santiago's snippet.

This commit is contained in:
László Monda
2016-12-17 01:31:50 +01:00
parent ebb13da49d
commit 61fa9c4bd8

View File

@@ -103,6 +103,10 @@ void GetSystemProperty() {
}
void JumpToBootloader() {
// We should reset the device here
SCB->AIRCR = (0x5FA<<SCB_AIRCR_VECTKEY_Pos)|SCB_AIRCR_SYSRESETREQ_Msk;
//SCB->AIRCR = 0x05fA0002; // If the masked version doesn't work, this should also reset the core.
for(;;);
}
void GetSetTestLed()