[Mod] 使用NCVI->ICER 清除所有已使用的中断
This commit is contained in:
@ -1105,7 +1105,8 @@ static void cmd_boot(int argc, char **argv)
|
|||||||
goto BootFailed;
|
goto BootFailed;
|
||||||
}
|
}
|
||||||
|
|
||||||
__disable_irq();
|
for (int i = 0; i < sizeof(NVIC->ICER) / 4; i++)
|
||||||
|
NVIC->ICER[i] = ~(0UL);
|
||||||
|
|
||||||
/* Jump to main image */
|
/* Jump to main image */
|
||||||
img_reset = (img_fptr_t)arm_vector[1];
|
img_reset = (img_fptr_t)arm_vector[1];
|
||||||
|
|||||||
Reference in New Issue
Block a user