<?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>hardware reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/20891/hardware-reset</link><description>hello all: 
 my mcu is nrf51822(QFAA), and use it to make a blue device ,i want to use mcu&amp;#39;s reset pin to reset it, just use hardware. i add a key to connect the reset pin,when the key is press down, the reset pin is low level,it could be reset system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 Apr 2017 12:54:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/20891/hardware-reset" /><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81581?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 12:54:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d879dfe3-db39-495d-b963-af321ef61fdf</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When I test here, adding NRF_POWER-&amp;gt;RESET = 1 to a nRF51 example, a reset is not continuously triggered. For reference, could you test the same example as I am testing: led_softblink:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
    ret_code_t err_code;
    
    lfclk_init();

    // Start APP_TIMER to generate timeouts.
    APP_TIMER_INIT(APP_TIMER_PRESCALER, OP_QUEUES_SIZE, NULL);

    const led_sb_init_params_t led_sb_init_param = LED_SB_INIT_DEFAULT_PARAMS(LEDS_MASK);

    err_code = led_softblink_init(&amp;amp;led_sb_init_param);
    APP_ERROR_CHECK(err_code);
	
		NRF_POWER-&amp;gt;RESET = 1;

    err_code = led_softblink_start(LEDS_MASK);
    APP_ERROR_CHECK(err_code);

    while (true)
    {
        __WFE();
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81580?ContentTypeID=1</link><pubDate>Thu, 06 Apr 2017 03:05:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d380d9c0-b418-47ec-9ac4-6a2a6c6fb873</guid><dc:creator>yichen</dc:creator><description>&lt;p&gt;this is my main function,i add NRF_POWER-&amp;gt;RESET = 1;in main function as follows&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;int main(void)
{
	nrf_delay_ms(1000);
	SEGGER_RTT_printf(0,&amp;quot;Build Time:%s-%s\r\n&amp;quot;, __DATE__, __TIME__);
	led_init();
	nrf_delay_ms(100);
	nrf_gpio_pin_clear(LED_RED);
    timers_init();
    ble_stack_init();
	get_my_addr();
	adv_mac_name(adv_mac_str);
    gap_params_init();
    services_init();
    advertising_init();
    conn_params_init();
    ble_advertising_start(BLE_ADV_MODE_FAST);
	buttons_init();
	config_wdt();
	led_on_off_timers_start();
	battery_start();	
	NRF_POWER-&amp;gt;RESET=1;
	SEGGER_RTT_printf(0,&amp;quot;init ok!!!!!!!!!\r\n&amp;quot;);
    // Enter main loop.
    for (;;)
    {
        power_manage();
    }
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81579?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 07:56:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:918d1c9d-e521-4add-9008-5cbef75754e0</guid><dc:creator>yichen</dc:creator><description>&lt;p&gt;i don&amp;#39;t press the reset button,maybe that means the reset pin is always high level&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81578?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 07:30:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:014b4d12-c918-48bd-9885-18450444f65b</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What is the state of the reset button?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81577?ContentTypeID=1</link><pubDate>Wed, 05 Apr 2017 02:29:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2252a39e-9174-4479-bfed-c99e33a66f64</guid><dc:creator>yichen</dc:creator><description>&lt;p&gt;i add this &amp;quot;NRF_POWER-&amp;gt;RESET = 1; &amp;quot;in my init function,then the system is always reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: hardware reset</title><link>https://devzone.nordicsemi.com/thread/81576?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 07:16:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e39f334-5f6c-4be5-95db-304afe5b13ec</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;When the reset doesn&amp;#39;t work, it is a chance that the chip is accidentally in debug mode.  To check if that is the case you can enable reset pin in debug mode: &lt;code&gt;NRF_POWER-&amp;gt;RESET = 1;&lt;/code&gt;, and then test the reset button, check if the problem is still there or if it is gone.&lt;/p&gt;
&lt;p&gt;If there is a problem with debug mode,it can be useful to have a look at &lt;a href="https://devzone.nordicsemi.com/question/95562/issue-with-nrf51-unexpectedly-entering-debug-mode/?answer=95899#post-id-95899"&gt;this&lt;/a&gt; thread.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>