Hello All,
I have been working on a project that uses sleepmode PM3 and a button interupt to wake... before going into sleep, I turn on the interupt for the appropriate pin and call halDeepSleep()
when I press the button, 70-80% of the time it wakes up... sometimes It takes me 50+ presses to get a failure.
Here is the odd part, if I pause the debugger, It is stopped at the line directly after PCON=IDLE. from here if I simply hit continue, the program starts just like it should... I have tried HalSystemReset(), setting the reset register, adding NOPs, setting PCON=0, sleepcmd=0... nothing seems to work.
does anyone have anymore suggestions?
Thanks,
Jason