<?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 erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26816/how-to-erase-nrf51822-softdevice-or-app-code</link><description>I write NRF_UART0-&amp;gt;ENABLE = 0x00 in my app in first line code, but now nrf51822 can connect but cannot Download and erase; 
 
 in keil it report: 
 
 **JLink Warning: Could not read memory location 0x20000000 when trying to set soft RAM BP
Cannot</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2017 08:30:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26816/how-to-erase-nrf51822-softdevice-or-app-code" /><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105406?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 08:30:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ff67ca5-1da4-4610-a10a-a0f1b756855b</guid><dc:creator>yuyixuantai</dc:creator><description>&lt;p&gt;The problem has resolved.
The flash can erase with jlink(V9) with latest dirver.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105405?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 08:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62043053-b1ff-4e5b-926d-dcbb81f33e0a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Great, so let&amp;#39;s close the question and mark the solution!;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105404?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 08:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b192970c-9e69-4a40-9e17-fec7074d4528</guid><dc:creator>yuyixuantai</dc:creator><description>&lt;p&gt;The problem have resolved in 11:55 AM with a new jlink(V9) with new driver(V6.20). my old jlink is V8 and driver is V4.98e. I have test several times, now can sure that the Jlink(V8) with V4.98e can download and debug the app-code in general,  but if the code cause some problems (erase error flash area, power off so quick, the app-code don&amp;#39;t match the device-soft, and so on), the jlink(V8) cannot work.&lt;/p&gt;
&lt;p&gt;You are right, Thank you;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105402?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 07:21:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01fee8b9-4582-4a42-9c05-a89f7d69206a</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;As I say, if you really believe that malfunctioning of JTAG/SWD interface relates to &lt;code&gt;NRF_UART0&lt;/code&gt; register then it indicates rather some electrical problem. Have you tried with different wiring, USB port etc.? Like really revised entire set-up not only changing one wire to another from the same box and claiming &amp;quot;neah, it didn&amp;#39;t help&amp;quot;?! What HW do you use? If it would be a problem of nRF51 chip then you could reproduce it on nRF5 DK board. If so then you can use another SEGGER J-Link (or similar SWD compatible) programmer, attach to DEBUG IN port and try to erase the target this way (bypassing internal SEGGER J-Link OB). There are many things you can try and while there might be a failure of the chip or relation to some FW features you have enabled in your code it&amp;#39;s so unlikely that I would never claim it unless I tried very hard all other ways!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105403?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 02:18:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f583fa98-3b2a-4783-802e-be23e3fa485f</guid><dc:creator>yuyixuantai</dc:creator><description>&lt;p&gt;I am sure jlink has no problem, becase it work ok in orther 51822_board.  And I write NRF_UART0 in two board, the same problem arise. Although it doesn&amp;#39;t seem possible， but I have no board to test &amp;quot; write NRF_UART0&amp;quot;.&lt;/p&gt;
&lt;p&gt;I want to konw Is there other method to erase 51822, I have test all the method what I know in two PC with two jlink.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to erase nrf51822 softdevice or app code</title><link>https://devzone.nordicsemi.com/thread/105401?ContentTypeID=1</link><pubDate>Sat, 11 Nov 2017 09:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:524f06da-e244-4d73-bcc0-cc9e52144df8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;No, writing to &lt;code&gt;NRF_UART0&lt;/code&gt; or other registers cannot brick the device, don&amp;#39;t worry. Most probably just your USB cable or other wiring causes errors to JTAG/SWD line. Try different USB port, different PC, different (shorter and thicker/better) USB cable, unplug all jump-wires and other connectors from the target...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>