<?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>How to shutdown the BLE?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18940/how-to-shutdown-the-ble</link><description>I write some function, it can run ok before I start he BLE function.
When I start the BLE function, the function can not run ok.
but , I get some data from APP throuth BLE.
I want to shutdown the BLE, and run the function ,
When I run the function</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 12 Jan 2017 09:32:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18940/how-to-shutdown-the-ble" /><item><title>RE: How to shutdown the BLE?</title><link>https://devzone.nordicsemi.com/thread/73214?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 09:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:98cc6a1b-8a0e-41c6-a3e4-044a236cf1f2</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;@ligang: Are you writing directly to the NVMC, e.g. writing to the  NRF_NVMC-&amp;gt;CONFIG register, after you have enabled the SoftDevice?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to shutdown the BLE?</title><link>https://devzone.nordicsemi.com/thread/73212?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 08:38:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00a20a7a-361d-42ef-8965-d4e9bceedda7</guid><dc:creator>ligang</dc:creator><description>&lt;p&gt;void write32dataY(unsigned int xyab)
{
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEPAGE = FLASH_ERASE_LG;
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEPCR1 = FLASH_ERASE_LG;
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEUICR = 1;
while (NRF_NVMC-&amp;gt;READY == 0);
//NRF_NVMC-&amp;gt;ERASEALL=1;
NRF_NVMC-&amp;gt;CONFIG = 2; //FOR DEL
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEPAGE = FLASH_ERASE_LG;
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEPCR1 = FLASH_ERASE_LG;
while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;ERASEUICR = 1;
while (NRF_NVMC-&amp;gt;READY == 0);&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;//NRF_NVMC-&amp;gt;ERASEUICR=1;
//while(NRF_NVMC-&amp;gt;READY==0);
NRF_NVMC-&amp;gt;CONFIG = 1; //FOR write
while (NRF_NVMC-&amp;gt;READY == 0);
//password[0]=170;
FLASH_DEAL-&amp;gt;PASSWORD = xyab;

while (NRF_NVMC-&amp;gt;READY == 0);
NRF_NVMC-&amp;gt;CONFIG = 0; //FOR READ
while (NRF_NVMC-&amp;gt;READY == 0);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to shutdown the BLE?</title><link>https://devzone.nordicsemi.com/thread/73213?ContentTypeID=1</link><pubDate>Thu, 12 Jan 2017 08:37:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d945df40-6a56-4472-a797-99190abbd2d4</guid><dc:creator>ligang</dc:creator><description>&lt;p&gt;I use the function as follow:
__disable_irq();
But the flash can not write to the flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>