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:
santiagogf89@gmail.com
2016-11-14 00:06:43 +01:00
parent 774402c497
commit 2a9aa96470

View File

@@ -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