KL25z LLS Wake-Up - Reactivating PORT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

KL25z LLS Wake-Up - Reactivating PORT

Jump to solution
987 Views
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 Kudos
Reply
1 Solution
977 Views
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
2 Replies
978 Views
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 Kudos
Reply
974 Views
Bergma
Contributor I

Hi Robin.

 

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

Thanks alot

 

Mathias

0 Kudos
Reply