<?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>About reset during advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55975/about-reset-during-advertising</link><description>SDK: 15.3.0 Example: ble_app_multirole_lesc Device: EYSHJNZWZ (nRF52832) 
 After calling &amp;quot;ble_advertising_start&amp;quot; to start advertising, call &amp;quot;sd_app_evt_wait&amp;quot; to transition to sleep. Approximately 7 minutes after calling &amp;quot;sd_app_evt_wait&amp;quot;, it appears to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Jan 2020 07:36:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55975/about-reset-during-advertising" /><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/229330?ContentTypeID=1</link><pubDate>Thu, 16 Jan 2020 07:36:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b210edc-a98b-4949-a2cf-9e638210f52b</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;on going discussions at&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56615/about-sleep-release-in-sd_app_evt_wait"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56615/about-sleep-release-in-sd_app_evt_wait&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/227561?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 05:11:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0a146d8-308b-484f-b84a-6ccb063cbe9a</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Please tell me another.&lt;br /&gt;Current consumption increased when using &amp;quot;__WFE ()&amp;quot; and &amp;quot;__SEV ()&amp;quot; instead of &amp;quot;sd_app_evt_wait&amp;quot;.&lt;br /&gt;Even just changing &amp;quot;sd_app_evt_wait&amp;quot; to &amp;quot;__WFE ()&amp;quot; increased current consumption.&lt;br /&gt;I cannot tolerate this increase in current consumption.&lt;br /&gt;Please tell me about this cause.&lt;br /&gt;Please let me know if there are any other measures.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/227559?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 04:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5094b350-b0eb-464e-9169-dc2d2a5c3460</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; Otherwise you can think of avoid using sd_app_evt_wait () but use these commands instead:&lt;br /&gt;&amp;gt;&amp;gt; __WFE ();&lt;br /&gt;&amp;gt;&amp;gt; __WFE ();&lt;br /&gt;&amp;gt;&amp;gt; __SEV ();&lt;br /&gt;&amp;gt;&amp;gt; This will allow the CPU to wakeup and execute the feeding WDT task on any CPU activity.&lt;/p&gt;
&lt;p&gt;I tried the above process.&lt;br /&gt;When the CPU wakes up, it also wakes up at the application level.&lt;br /&gt;As a result, the WDT clear process runs and the WDT reset phenomenon no longer occurs.&lt;br /&gt;Thank you for teaching me.&lt;br /&gt;However, I do not understand what &amp;quot;__WFE ()&amp;quot; and &amp;quot;__SEV ()&amp;quot; do.&lt;br /&gt;Can you tell us about these roles?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/227556?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 02:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:089f29c0-c3e4-4fb3-bec1-52a0e546898a</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Thank you for answering.&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; How did you feed the WDT? What was the reload value you used?&lt;br /&gt;The setting of WDT is shown below.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define WDT_ENABLED						1
#define WDT_CONFIG_BEHAVIOUR			0
#define WDT_CONFIG_RELOAD_VALUE			3800
#define WDT_CONFIG_IRQ_PRIORITY			6
#define NRFX_WDT_CONFIG_NO_IRQ 			1


ret_code_t					err_code;
nrf_drv_wdt_config_t		config = NRF_DRV_WDT_DEAFULT_CONFIG;
err_code = nrf_drv_wdt_init(
								&amp;amp;config,
								NULL
);
APP_ERROR_CHECK(err_code);

err_code = nrf_drv_wdt_channel_alloc(
								&amp;amp;s_wdt_channel_id
);
APP_ERROR_CHECK(err_code);

nrf_drv_wdt_enable(
);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;gt;&amp;gt; I would suggest to use a timer to feed the WDT.&lt;br /&gt;I want to reduce power consumption.&lt;br /&gt;Therefore, I do not want to use the timer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/226960?ContentTypeID=1</link><pubDate>Fri, 27 Dec 2019 16:34:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca9f5f79-d595-4fee-9c3b-bda9f645b0d7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Takashina,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How did you feed the WDT ?&amp;nbsp; What was the reload value you used ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Usually the WDT should be fed using a timer. I think the reason that WDT timer trigger a reset is because&amp;nbsp;&lt;span&gt;sd_app_evt_wait() will put the CPU to sleep and will not jump back to the application if there is no interrupt in the application. This mean, the CPU still wake up on softdevice activity (BLE activity) but it won&amp;#39;t execute the WDT feeding code in the loop you have. This result that the WDT will still run when CPU is active (when there is BLE event) but it won&amp;#39;t get fed. After a few minutes the WDT will timeout.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I would suggest to use a timer to feed the WDT.&amp;nbsp;&lt;br /&gt;Otherwise you can think of avoid using&amp;nbsp;sd_app_evt_wait() but use these commands instead :&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;__WFE();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;__WFE();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;__SEV();&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This will allow the CPU to wakeup and execute the feeding WDT task on any CPU activity.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About reset during advertising</title><link>https://devzone.nordicsemi.com/thread/226854?ContentTypeID=1</link><pubDate>Thu, 26 Dec 2019 06:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a9e6d6-28b7-4215-babc-4062a7e80891</guid><dc:creator>takashina hiroki</dc:creator><description>&lt;p&gt;Is the sleep mode released at each advertisement interval?&lt;br /&gt;Since the next process of &amp;quot;sd_app_evt_wait&amp;quot; is not running, I don&amp;#39;t think sleep is released at application level.&lt;br /&gt;However, is the sleep released at SoftDevice level?&lt;br /&gt;WDT is updated when sleep is released at SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>