Add reset check for the bootloader. If a Power on Reset happens, the BL will jump to the application directly. If Reset pin is put to GND or SW reset happens, the bootloader will use the timeout function
This commit is contained in:
@@ -321,7 +321,9 @@ static peripheral_descriptor_t const *get_active_peripheral(void)
|
||||
{
|
||||
if (is_direct_boot())
|
||||
{
|
||||
//jump_to_application(applicationAddress, stackPointer);
|
||||
if (RCM->SRS0 & RCM_SRS0_POR_MASK) {
|
||||
jump_to_application(applicationAddress, stackPointer);
|
||||
}
|
||||
}
|
||||
|
||||
// Calculate how many ticks we need to wait based on the bootloader config. Check to see if
|
||||
|
||||
Reference in New Issue
Block a user