<?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>Deinit the stack</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/579/deinit-the-stack</link><description>Hi, 
 Let&amp;#39;s say that you have a processor and a nRF51822 as a coprocessor. The first processor sends commands to the nRF51822 to drive it (init the stack, init the services, start advertising...).
Let&amp;#39;s say that you want to run two different BLE applications</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Oct 2013 11:20:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/579/deinit-the-stack" /><item><title>RE: Deinit the stack</title><link>https://devzone.nordicsemi.com/thread/3007?ContentTypeID=1</link><pubDate>Wed, 02 Oct 2013 11:20:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43666ef0-db50-4dd7-8856-e00e3628a25b</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Calling sd_ble_softdevice_disable() will disable the softdevice, and this also clears the GATT table and all stored state in the softdevice. This should therefore be a reasonable way to switch between applications.&lt;/p&gt;
&lt;p&gt;You can put an nRF51822 to sleep at any time, and the wake-up capabilities will depend on the sleep mode and enabled peripherals. You can take a look at &lt;a href="https://devzone.nordicsemi.com/index.php/what-is-the-power-and-clock-model-of-peripheral-in-nrf51"&gt;this question&lt;/a&gt;, which tries to explain that.&lt;/p&gt;
&lt;p&gt;Also, if you put the chip in system off mode, a wakeup will cause a reset anyway, in which case all state of the softdevice is lost anyway.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>