I am trying to put an LPC2368 into power down or sleep mode.
I can get the chip to sleep and wakeup with out any problems, however I sometimes get data aborts after waking up.
Now I just want to check what I am doing with FreeRTOS is correct.
I have several tasks running. When it is time to sleep most of the tasks block on a semaphore.
So when going to sleep, I call taskENTER_CRITICAL(), stop the RTOS timer and put the chip into power down mode.
Upon waking I start the RTOS timer and call taskEXIT_CRITICAL().
Can anyone see any problems with this ?
Using GCC to compile.