KL25z LLS Wake-Up - Reactivating PORT

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

KL25z LLS Wake-Up - Reactivating PORT

跳至解决方案
1,482 次查看
Bergma
Contributor I

Hi

I am having some trouble getting the KL25z to wake up fully after LLS. By that i mean that I am unable to utilize the I/O pins, i.e. the PORT module, after wakeup.

I gather that i need to reactivate something, but I have been unable to find the documentation regarding this.

Below is the LLWU IRQ Handler

 

void LLWU_IRQHandler()
{

	if (LLWU->F2 & LLWU_F2_WUF14_MASK)
	{
		// Clear Wake-up flag for pin
		LLWU->F2 |= LLWU_F2_WUF14_MASK;

		// Disable sleep on exit
		SCB->SCR &= ~SCB_SCR_SLEEPONEXIT_Msk;
	}
	else
		if (LLWU->F3 & LLWU_F3_MWUF0_MASK)
		{
			// write 1 to TCF to clear the LPT timer compare flag
			LPTMR0->CSR |= LPTMR_CSR_TCF_MASK;

			PTB->PTOR |= MASK(0);
		}
	//PMC->REGSC &= ~PMC_REGSC_ACKISO_MASK;
}

 

 

I am using MCUXpresso with NXP SDK.

 

I'm kinda banging my head against the wall here.

 

Mathias

0 项奖励
回复
1 解答
1,472 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Mathias,

Please refer the frdmkl25z_demo_apps_power_mode_switch SDK example:

frdmkl25z_demo_apps_power_mode_switch.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,473 次查看
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Mathias,

Please refer the frdmkl25z_demo_apps_power_mode_switch SDK example:

frdmkl25z_demo_apps_power_mode_switch.png

Best Regards,
Robin
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复
1,469 次查看
Bergma
Contributor I

Hi Robin.

 

I could have sworn that i already tried that. Nevertheless i worked!!!

Thanks alot

 

Mathias

0 项奖励
回复