<?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>wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48207/wake-up-from-sleep-mode-using-nfc-not-working-with-softdevice</link><description>Hello, 
 I want to put my custom board to sleep mode after writing some data through NFC and wake up from sleep through NFC. I have successfully write data through nfc. To wake up from system off mode I have referred https://devzone.nordicsemi.com/f/nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 16 Jun 2019 08:40:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48207/wake-up-from-sleep-mode-using-nfc-not-working-with-softdevice" /><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/193028?ContentTypeID=1</link><pubDate>Sun, 16 Jun 2019 08:40:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:850e220d-4ee4-4267-a488-281185a048e3</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;The problem is resolved. I have removed&amp;nbsp;&lt;span&gt; &lt;/span&gt;NRF_NFCT-&amp;gt;TASKS_SENSE = 1; It works&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/192439?ContentTypeID=1</link><pubDate>Wed, 12 Jun 2019 14:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd95b8a6-d0ff-4fcc-af9b-87631fb497a7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I ran the function below to enter System OFF mode with the ble_app_hrs example but did not manage to reproduce the problem.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for putting the chip into sleep mode.
 *
 * @note This function will not return.
 */
static void sleep_mode_enter(void)
{
    ret_code_t err_code;

    err_code = bsp_indication_set(BSP_INDICATE_IDLE);
    APP_ERROR_CHECK(err_code);

    err_code = bsp_nfc_sleep_mode_prepare();
    APP_ERROR_CHECK(err_code);
    
    err_code = bsp_buttons_disable();
    APP_ERROR_CHECK(err_code);

    // Go to system-off mode (this function will not return; wakeup will cause a reset).
    err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try to not initialize the NFC in your code, only start &amp;quot;sense&amp;quot;, and see if you get the same result?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191433?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 15:10:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ec109f4-793e-4238-9d53-9ba494a57d9f</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;I have also tried by uninitialized&amp;nbsp; twi driver&amp;nbsp; and stop time before sd_power_system_off () but result is same.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191399?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:36:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9edfb2c7-c169-424b-ad4b-c34a21ad5831</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;Yes&amp;nbsp; I have comment&amp;nbsp; one by one line in following code and observe the advertising. So that i have said that it reaches to&amp;nbsp;&lt;span&gt;sd_power_system off. This is additional code if skip this my custom board advertising continuously.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;	if (m_system_off_mode_on)
        {
		
		m_system_off_mode_on = false;
		// Set NFC as wake up Source
		NRF_NFCT-&amp;gt;TASKS_SENSE = 1;
        nrf_delay_ms(100);
        // Enter System OFF mode.
        sd_power_system_off();
        }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191384?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:15:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:669ff803-9b88-4232-b735-b6766f01ed46</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please place a breakpoint at this line to confirm. There can be several reasons why the board is not advertising.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191380?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:11:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3923fc0-023c-47aa-87a6-89b89096edf9</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;Program reaches to sd_power_system off.&amp;nbsp; I have verified through nrfConnect APP. Because Borad is not detected after I have set&amp;nbsp;&lt;span&gt;m_system_off_mode_on though nfc.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191376?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 13:05:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00da0ca8-28d8-4507-a0ac-cc79e6de794c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t see anything obvious. Have&amp;nbsp;you debugged the app&amp;nbsp;and verified that the program reaches this line:&amp;nbsp;sd_power_system_off();?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wake up from sleep mode using NFC not working with softdevice</title><link>https://devzone.nordicsemi.com/thread/191316?ContentTypeID=1</link><pubDate>Thu, 06 Jun 2019 11:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05d470be-aa9e-4f9b-a0da-0cf6da4df064</guid><dc:creator>pd@learner</dc:creator><description>&lt;p&gt;In above question I forgot to mention that I have set flag&amp;nbsp;m_system_off_mode_on through nfc.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>