问答

汇集网友智慧,解决技术难题

21ic问答首页 - stm32g0 屏蔽的EXTI中断可以唤醒从WFI进入的STOP MODE?

TI stm32g0 top TE ic

stm32g0 屏蔽的EXTI中断可以唤醒从WFI进入的STOP MODE?

tyou2021-02-04
本帖最后由 tyou 于 2021-2-4 23:14 编辑

NVIC_SetPriority(EXTI0_1_IRQn, 3);
NVIC_DisableIRQ(EXTI0_1_IRQn);
HAL_PWR_EnterSTOPMode(PWR_LOWPOWERREGULATOR_ON, PWR_STOPENTRY_WFI);

NVIC_EnableIRQ(EXTI0_1_IRQn);

然后EXTI0中断就被执行了
这和手册不相符了吧?

另外,lptim中断屏蔽后就无法唤醒, systick suspended.

4.3.7 Stop 1 mode - Mode exit
If WFI or Return from ISR was used for entry:
Any EXTI Line configured in Interrupt mode (the corresponding EXTI Interrupt vector must be enabled in the NVIC). The interrupt source can be external interrupts or peripherals with wakeup capability. Refer to Table 48: Vector table.




回答 +关注 17
1941人浏览 7人回答问题 分享 举报
7 个回答

您需要登录后才可以回复 登录 | 注册