Hi NXP,
I am evaluating the KL26 to see if this MCU fits my design, so I am trying some demo project on the FRDM-KL26Z eval board. I am trying to develop some power saving function under the FreeRTOS and since i am planning to wake up the MCU by a few pins from port C, i have to use VLPW mode. Here are my problems and questions:
1. Power mode switch demo: For the VLPW, it cannot switch from RUN directly based on the power mode state diagram, see below. So the transition is RUN -> VLPR -> VLPW.

I am confused with the demo project because it didn't show this transition. The demo project shows the following:
case kAPP_PowerModeVlpw:
SMC_PreEnterWaitModes();
SMC_SetPowerModeVlpw(SMC);
SMC_PostExitWaitModes();
break;
I don't see any transition to the VLPR, then VLPW. Plus i don't see the current consumption down to the specified level, so I am wondering if the demo is missing something in the VLPW power saving mode.
2. The port C interrupt works on this individual power mode switch project under the demo folder. Unfortunately, it didn't work when i moved this power mode switch function under the FreeRTOS environment. None of the port C pin wakes up the MCU. I can only see the tickless project in FreeRTOS. Do you have any working demo that shows the power mode switching under FreeRTOS? Please advise.
3. I bought couple of FRDM-KL26Z eval boards and they both were not working. Then i searched about this in the forum and found that they are non-programmed on both the K20 and KL26. So i followed the thread: https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-KL26Z-DOA/m-p/1249153#M59937 programmed both K20 and KL26, but i can only brought the board up to a maintenance drive when i plus in the USB to the OpenSDA port. I am still having trouble to bring it to a working condition. Can you help to guide me to bring up these eval board? please show as detail as possible.
BTW, I am doing all these under the IAR. Any tips and recommendation is greatly appreciated!
Thanks,
Gilbert