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.