[Mod] MBL 使用NCVI->ICER 清除所有已使用的中断
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user