I have struggled with the complexity of the power_manager example to put the K22F to deep sleep. The example is much too complex to easily simplify to use a bare bones non-sdk project.
Wondering if an NXP rep or someone else can help by providing a simple go to deep sleep project which wakes from a pushbutton for the FRDM-K22F board. This would help me greatly in getting a time crunched project out the door.
Thanks for any help provided.
Hello,
Here you can find a basic document and example (in baremetal) that sets MCU to lowest power modes (LLS and VLLSx):
Power Management on Kinetis MCUs: LLS and VLLS modes
It is focused on KL26 device but same principle will apply to FRDM-K22F.
I hope you can find it useful!
Regards,
Isaac Avila
Hi Michael
See: http://www.utasker.com/kinetis/LLWU.html
Then see http://www.utasker.com/kinetis/FRDM-K22F.html which allows you to choose any LLWU mode and wake up from it using a push button (either temporarily to do one operation or permenently to RUN mode, or from a RTC alarm).
If you need an immediate and complete solution just take the uTasker project (it is bare-metal in the sense of your requirements) and includes complete power management support integrated with no more work (as well as almost everything else that the K22 could need, plus a K22 simulator that allows the complete project to be tested in (approx.) real-time, excercising peripherals, interrupt, DMA etc...).
Regards
Mark
Kinetis for professionals: http://www.utasker.com/kinetis.html