<?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>soft reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17737/soft-reset</link><description>how to soft reset nrf51 in ble application??</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Dec 2016 13:50:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17737/soft-reset" /><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68286?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 13:50:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae3895d9-623b-4673-ab0d-cb9bb734cd1b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Np. Please consider accepting my answer by clicking the grey circle next to it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68285?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 13:30:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a209d65-ab77-4dce-adb9-caac43988ee5</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;thanks i tried with NVIC_SystemReset(). but it still goes into infinite loop.&lt;/p&gt;
&lt;p&gt;i have posted new question here.
&lt;a href="https://devzone.nordicsemi.com/question/105880/soft-reset-in-i2c-api/"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68284?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 12:54:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:441e8880-e9a8-41d3-80b8-f70752ca9bb3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you have enabled the SoftDevice you can use sd_nvic_systemreset(), if not you can use nvic_systemreset()&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68280?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 12:34:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:054b3585-9e36-4eec-9840-df3d26a6e422</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;i saw this post:
&lt;a href="https://devzone.nordicsemi.com/question/64120/sd_nvic_systemreset-can-not-reset/"&gt;link text&lt;/a&gt;
in this post they are talking about enabling about soft device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68279?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 12:15:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbdcea49-2152-4785-be35-437ce314e6c3</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please add this a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68283?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 11:54:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba13c7b5-3e34-427a-9d5e-5010ea60b3f8</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;ret_code_t mma8452_I2C_register_read(uint8_t slave_addr, uint8_t reg_addr,  uint8_t * pdata, uint32_t bytes)
{&lt;br /&gt;
ret_code_t ret_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    ret_code = nrf_drv_twi_tx(p_twi_master,slave_addr, &amp;amp;reg_addr,1,true);
    
    if(ret_code != NRF_SUCCESS)
    {
        return ret_code;
    }
    
    ret_code = nrf_drv_twi_rx(p_twi_master,slave_addr, pdata, bytes, false);
    
    return ret_code;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68282?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 11:53:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4fa1a754-8a4f-4daf-9526-cd61ac4f14db</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;but when i put break point on *x = (rx_buffer[0]) it goes into infinite loop&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68281?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 11:52:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f4b42c2-3faa-414d-a4d4-a633463eb8e9</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;hello i am interfacing i2c sensor mma8452 with nrf51 dk.
my function is&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;void mma_read(uint8_t *x, uint8_t *y, uint8_t *z)
{
    uint32_t err_code;

    uint8_t rx_buffer[6];
    
    err_code = mma8452_I2C_register_read(MMA_ADDR, DATAX0, rx_buffer, sizeof(rx_buffer)); 

    if(err_code != NRF_SUCCESS)
		{
		sd_nvic_SystemReset();
		}
	  *x = (rx_buffer[0]);
   *y = (rx_buffer[2]);
  *z = (rx_buffer[4]);

}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68278?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 08:56:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01b46ea9-d98c-4b0a-b5db-85049407173b</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes. Correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68277?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 08:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:788dd9b6-21bc-4d39-80a9-56862361b383</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;just i have to write sd_nvidc_systemreset()??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68276?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 07:58:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e75dad49-8307-4980-b885-180ee16ad34c</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;If you are using a SoftDevice you can use &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.1/group___n_r_f___n_v_i_c___f_u_n_c_t_i_o_n_s.html?cp=3_7_2_1_0_2_9_2_9#ga2bdb388be7b21d11b347549bb57ed02e"&gt;sd_nvic_systemreset()&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68275?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 06:13:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4d08e1a-3c1c-402a-84f0-6ff24d8c9c1b</guid><dc:creator>nordicbeginner</dc:creator><description>&lt;p&gt;yes i am using soft device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68274?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 14:11:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:730702b9-8ca2-4249-8cf8-02c50ea56603</guid><dc:creator>butch</dc:creator><description>&lt;p&gt;&lt;a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.faqs/ka9598.html"&gt;infocenter.arm.com/.../index.jsp&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: soft reset</title><link>https://devzone.nordicsemi.com/thread/68273?ContentTypeID=1</link><pubDate>Tue, 15 Nov 2016 13:08:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43b2bac4-7c18-433e-98c0-6378e95c0eb1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Are you using a SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>