21ic问答首页 - stm32g0 屏蔽的EXTI中断可以唤醒从WFI进入的STOP MODE?
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.
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.
赞0
评论
2021-03-02
赞0
评论
2021-03-02
赞0
评论
2021-03-02
赞0
评论
2021-03-02
赞0
评论
2021-03-02
赞0
但是4.3.7那段话实在是搅浑了整个认识
评论
2021-02-06
赞0
66057601c153deebb6.png (416.3 KB )
下载附件
2021-2-4 23:39 上传
评论
2021-02-04
您需要登录后才可以回复 登录 | 注册