<?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>NRF51 SWD flashing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17230/nrf51-swd-flashing</link><description>Hi everyone, 
 I implemented nrf51 flashing through SWD (external MCU is used). After first flashing and reset when we enter debug mode on SWD second time we have a busy state (NVMC_READY (0x4001E000 + 0x400) is set to zero) from NVMC. What could be</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Oct 2016 15:56:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17230/nrf51-swd-flashing" /><item><title>RE: NRF51 SWD flashing</title><link>https://devzone.nordicsemi.com/thread/66201?ContentTypeID=1</link><pubDate>Fri, 28 Oct 2016 15:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dac9f33-03e8-47b3-89b7-054d13488f80</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Again, what hardware/software are you using? Are you developing your own debugger? Then you should check out ARM documentation. &lt;a href="http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0432c/Bcgbfdhc.html"&gt;infocenter.arm.com/.../index.jsp&lt;/a&gt;, &lt;a href="http://infocenter.arm.com/help/topic/com.arm.doc.ddi0316d/index.html"&gt;infocenter.arm.com/.../index.html&lt;/a&gt;. And this whitepaper on production programming: &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.whitepapers/dita/whitepapers/nwp_027/intro.html?cp=11_0"&gt;infocenter.nordicsemi.com/.../intro.html&lt;/a&gt;. You need to access the DAP to halt the processor.&lt;/p&gt;
&lt;p&gt;To reset the chip you can write 0x05FA0004 to address 0xE000ED0C&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SWD flashing</title><link>https://devzone.nordicsemi.com/thread/66200?ContentTypeID=1</link><pubDate>Thu, 27 Oct 2016 16:26:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c9066ef-85d3-4988-8789-f827071b567c</guid><dc:creator>VoidGreen</dc:creator><description>&lt;p&gt;I found the reason for that bug. |It looks like if WF uses NVMC and it conflicts with SWD flashing through NVMC. So another question is how to stop and maybe reset execution of FW code through SWD?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF51 SWD flashing</title><link>https://devzone.nordicsemi.com/thread/66199?ContentTypeID=1</link><pubDate>Tue, 25 Oct 2016 14:14:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cdcc4515-5189-4b55-a13d-dabfddcc4b27</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;So what are you using to flash the chip? And which software? I&amp;#39;ve never seen that with a JLink. You could try to do a pin reset after flashing, set the 0x40000544 register to 1, and then hold SWDIO and SWDCLK low for a minimum of 100µs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>