LLS sleep with MQXLite on KInetis

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

LLS sleep with MQXLite on KInetis

1,218 次查看
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

标记 (3)
0 项奖励
回复
1 回复

1,023 次查看
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 项奖励
回复