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

This commit is contained in:
gaoyang3513
2024-08-02 21:04:24 +08:00
parent b7c27bc14f
commit 8862e54265

View File

@ -1105,7 +1105,8 @@ static void cmd_boot(int argc, char **argv)
goto BootFailed;
}
__disable_irq();
for (int i = 0; i < sizeof(NVIC->ICER) / 4; i++)
NVIC->ICER[i] = ~(0UL);
/* Jump to main image */
img_reset = (img_fptr_t)arm_vector[1];