[Mod] MBL 使用NCVI->ICER 清除所有已使用的中断

This commit is contained in:
gaoyang3513
2024-08-05 10:09:09 +08:00
parent 8862e54265
commit e7c70664d6

View File

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