Hi Richard,
This is actually a carry through from an earlier separate e-mail thread, but let me outline what I want to do. I'm running on a K22F processor and just want to go into the lowest power mode while retaining the ability to respond to interrupts in a timely manner. Right now, my portion of the code is set up so that nothing happens unless an interrupt initiates a response. My system is consuming around 30mA of current which is way above my budget. I think there are two things going on.
1. Whenever I break into the execution, I find that the code is in a loop waiting for input to the debug console. As I step, I see that the code is polling and it seems to me that FreeRTOS sees this as an active task. So, the first portion of my effort is to rewrite the interface to the serial port to use the FreeRTOS routines. (I'm working on that now.)
2. Once I have it so that there are essentially no active tasks to run, I want to get the processor to drop into a sleep mode. I presume this is where the clock to the processor is stopped but the clock to the peripherals is still running so that an external interrupt would get the processor going again.
I hope I am using the right terms... Since I'm new to using the ARM architecture in a low power mode, this is a learning exercise for me.
Thanks