About wake-up from VLLS modes and interrupt handling

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About wake-up from VLLS modes and interrupt handling

跳至解决方案
833 次查看
gauravbanyal
Contributor IV

Hello,

 

I am running the "power_mode_switch" example on the FRDM-KL03 board.

When I set the core to VLLS modes (VLLS_0 and VLLS_3) and I use the SW2 to wake up the core I intend to monitor the interrupt handlers LLWU_IRQHandler() and APP_WAKEUP_BUTTON_IRQ_HANDLER().  

 

I have added prints inside LLWU_IRQHandler() and the APP_WAKEUP_BUTTON_IRQ_HANDLER(). When I press SW2 to exit the VLLS state, I see the print from the function LLWU_IRQHandler() but not from the other although these two are configured to react on the same interrupt source.

 

Whats the reason for this? In my application, I need to use the BOARD_SW2_IRQ_HANDLER() handler to do some stuff. But looks like it does not get called. Please explain.

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
606 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to Table 7-2. Module operation in low-power modes in Chapter 7 in RM of KL03, in VLLS mode, the NVIC interrupt module is OFF, but LLWU is in full function state, that is why that the LLWU ISR is entered and VLLSx mode is exitted once you press hardware button on the FRDM-KL03 board.

In conclusion, in theVLLS mode,  LLWU is in full function state, but NVIC is in off state.

Hope it can help you

BR

XiangJun Rong

在原帖中查看解决方案

0 项奖励
回复
1 回复
607 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Pls refer to Table 7-2. Module operation in low-power modes in Chapter 7 in RM of KL03, in VLLS mode, the NVIC interrupt module is OFF, but LLWU is in full function state, that is why that the LLWU ISR is entered and VLLSx mode is exitted once you press hardware button on the FRDM-KL03 board.

In conclusion, in theVLLS mode,  LLWU is in full function state, but NVIC is in off state.

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复