LLS sleep with MQXLite on KInetis

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

LLS sleep with MQXLite on KInetis

500 Views
kaustubhkagalka
Contributor II

Hi,

I am using mkl26zvlh4 and MQXlite.I am trying to put mkl26zvlh4 to sleep in the idle task.I have an external interrupt at pin PTC4 which is supposed to wake up the MCU from sleep. For this I have made these changes in the processor expert.(Attached files)


I checked the current consumed by the MCU, it was still the same as before (about 5 mA).

I also worked out LLS sleep snippet from the manual (http://cache.freescale.com/files/32bit/doc/app_note/AN4503.pdf page no 26) with a bareboaord project, then I could drop the current consuption by 5mA, also changing clock mode to internal clock during sleep(hence turning off the PLL) also reduced the current consumption by 5mA.

However, when I use this code snippet in my idle task in MQXLite project, the MCU does not respond to an interrupt.

Is there any setting I am missing?

Please let me know if I need to share more details.

Thanks,

Kaustubh Kagalkar

Tags (3)
0 Kudos
1 Reply

305 Views
vicentegomez
NXP TechSupport
NXP TechSupport

Hi Kaustubh

Please also check the application note AN4470

Also there is a some samples code for the KL25 using MQXlite on the instalation folder of codewarrior

....\CW MCU v10.6\MCU\CodeWarrior_Examples\Processor_Expert\MQXLite\Kinetis\FRDM_KL25Z

I hope this will help you.

0 Kudos