<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12074/nrf51-not-waking-up-if-sleep-time-exceed-5-hours</link><description>I configured nrf to go to sleep after 5 minutes of inactivity and then wake up by external signal (by accelerometer interrupt if any movement detected). what struck me is, when it goes to sleep and shake it, it wake up (if the time sleep is less then</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2016 09:56:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12074/nrf51-not-waking-up-if-sleep-time-exceed-5-hours" /><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45696?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8242b6da-efd8-4c57-8d5d-f624cdcfd1aa</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;You set the prescaler value in APP_TIMER_INIT macro. Softdevice handler has nothing to do with app_timer configuration,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45695?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b140fdc6-55f8-4f07-9e6d-d7336b7a3c80</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;as I understand : “The RTC will run off the LFCLK.”  There are two RTC instances, RTC0 and RTC1.  The app_timer APIs use RTC1.  The BLE stack SD uses RTC0. I&amp;#39;m I right&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45693?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:53:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:662f741a-92d5-4060-b296-4d6f80392301</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;also im initialising the softdevice with  &lt;code&gt;SOFTDEVICE_HANDLER_INIT(NRF_CLOCK_LFCLKSRC_RC_250_PPM_4000MS_CALIBRATION, false);&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45694?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:50:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8b747a0-c380-4c1a-8daa-14d89d61d38a</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;#define APP_TIMER_PRESCALER             0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45692?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:49:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d162377-205e-408a-87f9-3c49c507bc83</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;app timer runs when the chip is sleeping, what is the prescalar you are using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45691?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:48:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2bc6d57d-4e7c-403c-9a21-13a34005f049</guid><dc:creator>makouda</dc:creator><description>&lt;p&gt;im using app_timer. but when the nrf is sleeping, does the timer run ??????????? I thought everyghing is sleeping&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51 not waking up if sleep time exceed (5 hours)</title><link>https://devzone.nordicsemi.com/thread/45690?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2016 09:16:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30da438e-96f4-40a5-8cae-2b27eaa28f06</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;What timer are you using TIMER1 or RTC1(app_timer)? And what prescaler are you using?
Timer1 is a 16-bit module and RTC is 24-bit, so you need to select your prescaler right. If you increase your prescaler for the timer ticks of 5 hours to fit into CC register, then it should work fine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>