diff --git a/MBL/source_ns/mbl_ns.c b/MBL/source_ns/mbl_ns.c index 51a59b3..84c6f44 100644 --- a/MBL/source_ns/mbl_ns.c +++ b/MBL/source_ns/mbl_ns.c @@ -76,6 +76,9 @@ static void jump_to_main_image(uint32_t msp, uint32_t reset) img_reset = (img_fptr_t)reset; // __disable_irq(); + for (int i = 0; i < sizeof(NVIC->ICER) / 4; i++) + NVIC->ICER[i] = ~(0UL); + #if defined(__ARM_ARCH_8M_MAIN__) || defined(__ARM_ARCH_8M_BASE__) /* Restore the Main Stack Pointer Limit register's reset value * before passing execution to runtime firmware to make the