2020-03-10 01:43 AM
Hi, I am trying to put bluenrg-2 in deep sleep mode at start of while loop, wake on uart rx interrupt, do some work and go back to sleep.
The sample code "sleep test" matches my requirements but it needs an incoming rx char to put bluenrg-2 in sleep mode.
When I modify it to go to sleep without if(__io_getcharNonBlocking()) condition, the system wakes but the code doesn't seem to serve the isr function.
Does it means that the system woke up just because of low logic on rx line and not because of interrupt?
The sample code serves the isr function.
I can't get mine working.
Please help me with it.
I want it to be
while(1)
{
Sleep()
Do some work
}