Page 1 of 1

[nRF52] sleep time passing too quickly

Posted: Sun Oct 21, 2018 12:16 am
by WhiteHare
I'm using utime.sleep_ms(1000) to create a one second delay between packet transmissions by an nRF52840, and yet the delay seems to be lasting only about 250ms instead. Perhaps something is waking it up prematurely?

Is there a better way to create a more accurate delay?

Re: [nRF52] sleep time passing too quickly

Posted: Sun Oct 21, 2018 2:51 am
by uCTRL
Is your main CPU oscillator configured correctly?
Check to see at frequency CPU is running, machine.freq().