<?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 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2553/nrf51822-requiring-re-flash-exposed-swdio-swdclk-pins</link><description>I am experiencing an unusual and hard-to-reproduce issue with some custom PCBs containing a nRF51822-QFAA, S110 v5.2.1, with 10K external pulldown on SWDCLK, and a 10-pin SWD header. Some of my test units have no physical enclosure, and my test users</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 20 May 2014 20:07:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2553/nrf51822-requiring-re-flash-exposed-swdio-swdclk-pins" /><item><title>RE: nRF51822 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/thread/10157?ContentTypeID=1</link><pubDate>Tue, 20 May 2014 20:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:80231f86-925f-4da2-bc12-624a570e698e</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;What I discovered was that shock cause displacement of the battery which momentarily power off and on the device.  The action of on/off rapidly may have cause a current spike.  This may be the cause of Flash being erased.  It happens only when the device is running.  What exactly is the cause, I have no idea.  I added a bigger capacitor like 22uF helped to prevent  power loss for a short period, enough to solve the problem for small shock.  For bigger shock, we added a rubber sponge on the battery door that helps to hold batteries in place.  With those 2 solutions seems to solved the problem. We didn&amp;#39;t get Flash erase report since.  Of course you can use a more sophisticated power regulator circuitry but would add up costs.  Our device was low cost consumer electronics, every cents we save counts.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/thread/10156?ContentTypeID=1</link><pubDate>Tue, 20 May 2014 18:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c338d0-8ea6-4eb8-ab95-d13803e92b3d</guid><dc:creator>Mike Robbins</dc:creator><description>&lt;p&gt;Hi Nguyen, thanks for the reply!  Wow -- that is a very strange finding, and yes, our system might be exposed to small mechanical shock (occasionally picked up and returned to a hard surface).&lt;/p&gt;
&lt;p&gt;Were you ever able to diagnose the mechanism of how that affected the flash memory?  Were there other workarounds to protect the flash from erase, other than the stiffer springs?  I feel like this would be a bad microcontroller design that allows a brown-out condition to permanently erase flash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/thread/10155?ContentTypeID=1</link><pubDate>Tue, 20 May 2014 08:28:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13d5ae55-ae3c-43da-8f1c-512423c36559</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;You said it is running on regular AAA battery.  Does the unit expose to small shock. Try to fasten the battery securely so it could not move what so ever and retest to see if the problem occurs again.  We had this similar problem with a different processor.  It was the problem with the battery disconnecting on a small shake or shock causing  the Flash to be erased partially.  Took us weeks to figure out what was the problem.  We thought it was software issue until we found the problem occurred every time we gave a little tap on the table or put it on the table a little hard.  Our code didn&amp;#39;t do any writing to Flash either.  During development phase we use battery hardness (springs) that were made in America.  We began to experiencing the problem only with units that came back from production in China.  100% have that issues.  Comparing, we found that the springs were a lot weaker than the one made in America despite the fact that they have the spring samples in hand.  They were never able to produce it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/thread/10154?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 20:39:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6429469-de98-4b27-8adc-43de233ed832</guid><dc:creator>Mike Robbins</dc:creator><description>&lt;p&gt;Hi Chris, thanks for the reply.  Yes, I also suspect &amp;quot;dodgy reset lines&amp;quot;, since nRESET is shared with SWDIO (and is exposed on this header).  I could see why this might cause random resets, but I can&amp;#39;t see why it should cause damage in a non-volatile way that isn&amp;#39;t repaired simply by power cycling.  Yes, the board is based on the reference schematics.  Powered by 2xAAA batteries directly.  Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51822 requiring re-flash (exposed SWDIO/SWDCLK pins?)</title><link>https://devzone.nordicsemi.com/thread/10153?ContentTypeID=1</link><pubDate>Mon, 19 May 2014 09:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea3729cb-5102-4557-9de4-52bf9f8bab43</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Dodgy reset lines or similar.. have you been through each of your pins and compared to the standard reference schematics...?&lt;/p&gt;
&lt;p&gt;What are they powered by?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>