<?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>How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/10048/how-to-put-the-system-in-off-mode-nrf51822</link><description>Hello, 
 I want to measure the current in system off mode.
I am flashing the S110 softdevice and bootloader in the nrf51822 chip.
Using BLE i am flashing an application code which does nothing but calls the function sd_power_system_off().
When we</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 May 2018 05:24:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/10048/how-to-put-the-system-in-off-mode-nrf51822" /><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133126?ContentTypeID=1</link><pubDate>Thu, 24 May 2018 05:24:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08bf9096-b698-4e2a-bd0c-2620ce7a90c0</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you attach your project so that i can reproduce that here. I strongly believe that pull configuration cannot cause a hardfault, but if you insist that it is the only change you made and still see a hardfault, then I want to try it out.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/133104?ContentTypeID=1</link><pubDate>Wed, 23 May 2018 19:52:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdeef646-768e-481e-b640-aae1feab4a9b</guid><dc:creator>opetany</dc:creator><description>&lt;p&gt;As I thought, but only in internal pull my code is different from the example code and after going into the systemoff mode occurs a hardfault.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/132185?ContentTypeID=1</link><pubDate>Wed, 16 May 2018 07:42:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94122d6-1670-4e6e-a054-c4ea7f90920c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;No, wakeup from CPU from systemoff only depends on the configured state change but NOT the internal pull.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/131073?ContentTypeID=1</link><pubDate>Sat, 05 May 2018 10:44:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b60e4bbe-10d7-477c-b0c1-989f9e5fe32d</guid><dc:creator>opetany</dc:creator><description>&lt;p&gt;I have the same issue. I have custom board and my button is external pulled up, so I have to use NRF_GPIO_PIN_NOPULL in code. Is a need to internal pull to wakeup CPU from SYSTEMOFF?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37237?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2015 08:38:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b316e12-e8db-415c-bedc-3877a0da145c</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;OK, then we can remove softdevice and bootloader from the picture And the code with pull settings changed looks good too.
To make sure that your board is in system off, check if it gets reset when it you press the wakeup button. If there is reset, then the wake of from system off worked, else the chip might not have gone in system off mode at all. Otherwise it should be something with the board. My guess is that there is some leakage somewhere. Check with the board schematics to see if it is following our reference designs. I would recommend you to contact the company who made this custom boards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37238?ContentTypeID=1</link><pubDate>Wed, 04 Nov 2015 07:48:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f45e29d7-e1fb-429c-8dc4-0b1a61ea3ec7</guid><dc:creator>SumitS</dc:creator><description>&lt;p&gt;Added this line. But it still draws the same current.&lt;/p&gt;
&lt;p&gt;Also when i dont flash the S110 softdevice and bootloader it takes about 2.5mA current.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37246?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 11:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa2a27db-0b8b-4e61-a19e-16aefd4944e9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not sure if this will work but worth a shot. Can you add this line just before going to system off&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;NRF_POWER-&amp;gt;TASKS_LOWPWR = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;explanation is &lt;a href="https://devzone.nordicsemi.com/question/32497/power-consumption-of-ble_app_beacon/?answer=32675#post-id-32675"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37245?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 11:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66ed921c-be83-4c12-ae68-91c061ca0eca</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;I am not so familiar with this evaluation kit, but are there any LED&amp;#39;s on? i see that you do some pin clear, but on some devkits here the latches are inverted and the pin clear would light a LED.&lt;/p&gt;
&lt;p&gt;Another thing is that you can try to flash your app without softdevice and bootloader (clear the chip and flash your app to ROM address 0). Then make measurements and see if the current consumption drops. We can then isolate the softdevice and bootloader from this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37244?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 11:17:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca64407f-59b5-476e-b944-b653138ac4e7</guid><dc:creator>SumitS</dc:creator><description>&lt;p&gt;i tried using pul up and pull down configuartion. But it still takes same amount of current.
I am using a Insight SIP evaluation kit.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37243?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 11:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2b25dcc-27bc-4b12-afe1-6deec698bc0d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;can you try to change the PULL config in this line&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;nrf_gpio_cfg_sense_input(1, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_LOW);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;for input there needs to some pull else the pin can go to invalid states while going to system off mode.
Are you using custom board?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37242?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 11:03:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b7a0c8-de10-4bb7-9f6f-bbd99703be23</guid><dc:creator>SumitS</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The code is as below:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the license.txt file.
 */
#include &amp;lt;stdbool.h&amp;gt;
#include &amp;lt;stdint.h&amp;gt;
#include &amp;quot;nrf.h&amp;quot;
#include &amp;quot;nrf_gpio.h&amp;quot;
#include &amp;quot;boards.h&amp;quot;

#define BTN_PRESSED 0
#define BTN_RELEASED 1

int main(void)
{
    // Configure BUTTON0 as a regular input
    nrf_gpio_cfg_input(0, NRF_GPIO_PIN_NOPULL);
    
    // Configure BUTTON1 with SENSE enabled 
    nrf_gpio_cfg_sense_input(1, NRF_GPIO_PIN_NOPULL, NRF_GPIO_PIN_SENSE_LOW);
    
    // Configure the LED pins as outputs
    nrf_gpio_range_cfg_output(LED_START, LED_STOP);
    
    nrf_gpio_pin_set(2);
    
    // If desired, change the RAM retention parameters:
    NRF_POWER-&amp;gt;RAMON = POWER_RAMON_ONRAM0_RAM0On   &amp;lt;&amp;lt; POWER_RAMON_ONRAM0_Pos
                     | POWER_RAMON_ONRAM1_RAM1On   &amp;lt;&amp;lt; POWER_RAMON_ONRAM1_Pos
                     | POWER_RAMON_OFFRAM0_RAM0Off &amp;lt;&amp;lt; POWER_RAMON_OFFRAM0_Pos
                     | POWER_RAMON_OFFRAM1_RAM1Off &amp;lt;&amp;lt; POWER_RAMON_OFFRAM1_Pos;
    
    while(1)
    {     
        // If BUTTON0 is pressed..
        if(nrf_gpio_pin_read(0) == BTN_PRESSED)
        {
            // Clear LED0
            nrf_gpio_pin_clear(2);

            // Enter system OFF. After wakeup the chip will be reset, and the MCU will run from the top 
            NRF_POWER-&amp;gt;SYSTEMOFF = 1;
        }
    }
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Thanks &amp;amp; Regards,
Sumit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37241?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 10:59:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f6609bf-be44-4270-aa3e-4b9b82470c73</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;would be nice if you can post the code of your app.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37240?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 10:50:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edb964bb-288a-427b-90a1-0fe578d8d774</guid><dc:creator>SumitS</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I tried the above example.
First i programmed the softdevice S110 and the bootloader.
Through bootloader i flashed the firmware in the link you have mentioned.
But still its taking the same amount of current.
Does this has anything to do with S110 and Bootloader?
Can you please help.&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards,
Sumit&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to put the system in off mode nrf51822</title><link>https://devzone.nordicsemi.com/thread/37239?ContentTypeID=1</link><pubDate>Tue, 03 Nov 2015 09:57:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d98c6b6-276f-41a2-ad68-95925d486243</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;looks like your device is still in debug mode. Are you making your measurements in system_off while debugging?
Try &lt;a href="https://github.com/NordicSemiconductor/nrf51-powerdown-examples"&gt;this&lt;/a&gt; example to make measurements which has been specifically made for this purpose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>