Psoc5lp sleep issues

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

I'm having issues with sleep mode and wake from PICU.  This is what is supposed to happen:  I press a button on the device which rotates a part, takes some measurements and when the part returns to the start position the device enters sleep until the button is pressed again, where it repeats the above. 

   

Before I enter CyPmSleep() I sleep all my components, and disable (and clear) their interrupts, then save the clock, enter sleep and restore the clock. 

   

What I'm noticing is that even after the interrupts have been disabled and cleared the device appears to wake from sleep to service an interrupt.  I tried not starting that particular interrupt, but then I would just wake and service a different interrupt.

   

Another strange thing is that if I press the button to wake from sleep, nothing appears to happen on the board unless I manually single step the code through the "wake" process in cyPm.c

   

The sleep and wake code can be found in oakUtilities.c, minimal package attached.

0 Likes
2 Replies
rola_264706
Level 8
Level 8
50 likes received 25 likes received 10 likes received

Jimmy Your download is missing a library DDS24 I and others will not be able to help you without it.

0 Likes
lock attach
Attachments are accessible only for community members.
Anonymous
Not applicable

Oops, sorry I thought the archive would bring in other dependencies. DDS24 is attatched.

0 Likes