Content originally posted in LPCWare by Chucky on Sat Jun 25 12:12:48 MST 2011
Quote: Zero
And the result is ?:confused:?
3. Wait for a clairvoyant :)
:)
Hi Zero,
I tried #1 and #3 and found out more strange things:
When I keep the BOD reset enabled when going into deep sleep, the wakeup event will always generate a reset, although there is sufficient bypass and not even a tiny voltage drop seen on the scope.
When I disable BOD reset before entering deep sleep, there is no reset and the wakeup interrupt routine is executed correctly, but return from wakeup interrupt always hangs the processor, although I have checked the stack contents incl. the return address (yes, it points to next instruction after wfi) to be correct.
When I don't execute the wfi, but instead call the same wakeup interrupt via set pending, it will execute and return correctly.
Now all that's left for me today is ... having a beer ... and one on you too ...
Charles :)