<?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>Simple nRF51822 sleep example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2901/simple-nrf51822-sleep-example</link><description>Is there an example for sleeping? I just want to put this thing to sleep drawing minimum current and have it wake up on a RTC timeout, but do not seem to be able to achieve anything less than 3.4mA.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Jun 2014 12:58:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2901/simple-nrf51822-sleep-example" /><item><title>RE: Simple nRF51822 sleep example</title><link>https://devzone.nordicsemi.com/thread/11055?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2014 12:58:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9bb4247-d2e5-4d0b-8f17-d5657ebfd1d6</guid><dc:creator>TJ</dc:creator><description>&lt;p&gt;I&amp;#39;ve now tried the same code (system-on-wakeup-on-rtc example) on a fresh windows development machine (Eclipse/GCC/J-Link Lite/PCA1004 as per nAN-29) and it also HardFaults after a RTC interrupt call. I have, to date, never seen it sleep.&lt;/p&gt;
&lt;p&gt;Any advice would be appreciated.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple nRF51822 sleep example</title><link>https://devzone.nordicsemi.com/thread/11054?ContentTypeID=1</link><pubDate>Thu, 26 Jun 2014 05:43:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5028528-fc6e-476b-9896-4c5398af903a</guid><dc:creator>TJ</dc:creator><description>&lt;p&gt;Thanks Stefan. That&amp;#39;s exactly what I was looking for. I took the main.c from your system-on-wakeup-on-rtc example, removed the GPIO LED and buttons stuff  and compiled it in our build environment (Ubuntu build machine/GCC) in place of our main.c. When I run it on the PCA1004 board though, it doesn&amp;#39;t appear to be waiting for the RTC interrupt. I am using GDB and the J-Link Lite and I&amp;#39;ve set breakpoints in the ISR as well as after the __WFE(). Occationally (randomly) it hits the ISR breakpoint, but mostly it doesn&amp;#39;t go to sleep and just skips over the WFE hiting my breakpoint straight after. The weirdest thing though is that if I remove that breakpoint to see what the current draw is and then hit pause, it ends up in a hardfault condition.&lt;/p&gt;
&lt;p&gt;EDIT: On further testing, it looks like the hardfault is occurring on return from the ISR.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple nRF51822 sleep example</title><link>https://devzone.nordicsemi.com/thread/11053?ContentTypeID=1</link><pubDate>Wed, 25 Jun 2014 06:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31307729-2652-4bf0-a9f5-3a2570bd1e6b</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Also a more recent version of the powerdown examples is available &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples"&gt;here&lt;/a&gt; on Nordic&amp;#39;s Github page&lt;/p&gt;
&lt;p&gt;There is also a current consumption guide availale &lt;a href="https://devzone.nordicsemi.com/question/5186/how-to-minimize-current-consumption-for-ble-application-on-nrf51822/#reply-5187"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple nRF51822 sleep example</title><link>https://devzone.nordicsemi.com/thread/11052?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 17:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d988c475-3138-4e85-8065-74834d3e3bc1</guid><dc:creator>Nils Minor</dc:creator><description>&lt;p&gt;Hi, maybe it is a help t you to have a look at my question &lt;a href="https://devzone.nordicsemi.com/question/881/how-to-reset-the-device/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt; there are some power down examples&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>