<?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>nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/11402/nrf51822-died-after-download-firmware</link><description>My six nrf51822 modules died after I erase flash and download &amp;quot;ble bcast mesh&amp;quot; (with sd110 8.0.0)
 github.com/.../nRF51-ble-bcast-mesh 
 At first time, I download firmware into chip, and enter debug mode, everything is good.
When I leave debug mode</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 May 2016 19:41:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/11402/nrf51822-died-after-download-firmware" /><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42981?ContentTypeID=1</link><pubDate>Wed, 04 May 2016 19:41:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab80aa59-e546-4803-a67b-bcb4411d0cbb</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi gortok,  I assume you know nrfjprog tool, you have to type this command in command prompt so that nrfjprog can try to recover you device. Normally when your device is programmed to go to low power modes without a wakeup source and if this happens too early then attempting to erase chip wont work, then you have to use this below command for attempting to erase chip, If it did not work even then then you have probably bricked you chip.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog --recover&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42980?ContentTypeID=1</link><pubDate>Wed, 04 May 2016 18:45:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:894daf92-3197-4e80-860c-57455378c592</guid><dc:creator>gortok</dc:creator><description>&lt;p&gt;What did you mean by &amp;#39;use nrfjprog to recover the module&amp;#39;. what command are you issuing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42979?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 08:22:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c37aa62-06e1-4869-945e-5e4924820889</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Thanks for coming back to this thread and updating it with the answer. Great job.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42978?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 01:59:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:117919f4-638b-4d8b-862a-cc7a1a7c5c76</guid><dc:creator>aaa</dc:creator><description>&lt;p&gt;finally, I know the reason.
the module I used has an external reset circuit: one 10K res and one 10nF in series.
I connect swclk and swdio to oscilloscope and see that the rising edge of swdio is odd.
After removing the cap, I can use nrfjprog to recover those module.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42977?ContentTypeID=1</link><pubDate>Wed, 20 Jan 2016 01:00:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da0126f2-1d2e-483d-9ed8-5a5a310440fa</guid><dc:creator>aaa</dc:creator><description>&lt;p&gt;maybe you are right.
but I never see this problem on other cortex M series MCU.&lt;/p&gt;
&lt;p&gt;nrfjprog result:&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin&amp;gt;nrfjprog.exe -e
ERROR: Cannot connect to any nRF device. Please make sure a device is
ERROR: connected to the debugger and supplied.&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin&amp;gt;nrfjprog.exe --recover
Recovering device. this operation might take 30s.
ERROR: Cannot connect to any nRF device. Please make sure a device is
ERROR: connected to the debugger and supplied.&lt;/p&gt;
&lt;p&gt;C:\Program Files (x86)\Nordic Semiconductor\nrf5x\bin&amp;gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42976?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 09:29:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0fed2bdd-d022-4e54-9cbc-dbc7904a8a49</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;When your first line in main is power reset, then i guess the debugger is not getting enough time to lock to your device. What is the output of --recover from nrfjprog?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 died after download firmware</title><link>https://devzone.nordicsemi.com/thread/42975?ContentTypeID=1</link><pubDate>Tue, 19 Jan 2016 09:14:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc96daf7-210c-4660-a088-dd230e13741e</guid><dc:creator>aaa</dc:creator><description>&lt;p&gt;After several try, another BLE module died.
But I find that the problem is the first line in the main loop,
&amp;quot;NRF_POWER-&amp;gt;RESET = 1;&amp;quot;&lt;/p&gt;
&lt;p&gt;If I mark this line, than no BLE will died.
But, what is the reason?
Why this single command in application region will make this chip die?&lt;/p&gt;
&lt;p&gt;====================================================================&lt;/p&gt;
&lt;p&gt;int main(void)
{
NRF_POWER-&amp;gt;RESET = 1;
/* init leds and pins &lt;em&gt;/
gpio_init();
NRF_GPIO-&amp;gt;OUTSET = (1 &amp;lt;&amp;lt; 4);
/&lt;/em&gt; Enable Softdevice (including sd_ble before framework */
SOFTDEVICE_HANDLER_INIT(MESH_CLOCK_SOURCE, NULL);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>