<?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>Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69879/weird-issue-observed-with-nrf52832</link><description>Hello, 
 We have a custom board with nrf52832. We have seen a problem during production. Our process is as follows (the below steps are ran in a script), 
 
 1. We recover the board 
 2. We flash a HQ test application FW for hardware quality check 
 3</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 25 Dec 2020 00:02:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69879/weird-issue-observed-with-nrf52832" /><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286582?ContentTypeID=1</link><pubDate>Fri, 25 Dec 2020 00:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0675454a-f729-4e1d-b6ba-5c1eb07d3f1f</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Something else to think about, pardon me if you already know this. Once the reset pin is actually working as a reset pin (more on this in a while) erasing all flash does not stop it being a reset pin until after a full reset takes place, either via the reset pin or power cycle or other. The Flash registers which control the pin are only read following a reset, so until a reset happens the fact that the registers are erased is not recognised.&lt;/p&gt;
&lt;p&gt;Once the reset pin is no longer a reset pin (erase all, hard reset or power cycle) and you set it to be a reset pin (write to the Flash registers) it does not become a reset pin until after a hard reset which is of course not possible by using the reset pin (in this case). If using Nordic examples, setting the pin as a reset pin automatically generates the required reset in software, but if setting by other means then the pin won&amp;#39;t reset until after some other reset.&lt;/p&gt;
&lt;p&gt;That&amp;#39;s basically what your option 1 is doing, but the reset pin might not be a reset pin depending on what you did earlier and so may not reset, for example if you do 2 recover reset cycles. So .. &lt;em&gt;--pinreset&lt;/em&gt; might not, and what is &lt;em&gt;--reset&lt;/em&gt;?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286580?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 23:18:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea39d47e-3d90-4948-9270-7ef782b96b08</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Option 1. A hard reset is required after recover.&lt;/p&gt;
&lt;p&gt;option 2. will not work reliably&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286579?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 22:43:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25bf1e57-03d7-4075-81c2-1f21c4713cf6</guid><dc:creator>VishnuGS</dc:creator><description>&lt;p&gt;Hello hmolesworth,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I will consult my HW engineers to see a quick way of discharging my bulk capacitors.&lt;/p&gt;
&lt;p&gt;About, J-link circuitry disconnection, I have tried that.&lt;/p&gt;
&lt;p&gt;In my Second procedure, while waiting for 15 minutes I disconnected my custom board with all other external circuitry.&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286578?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 22:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87f3c12e-568a-43f7-aaac-fb52d7e7e189</guid><dc:creator>VishnuGS</dc:creator><description>&lt;p&gt;Hello Nguyen Hoan Hoang,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;Did you mean,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Option 1:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Recover(from preloaded APP FW) -&amp;gt; --pinreset -&amp;gt; Flash HQ Test FW -&amp;gt; --reset --&amp;gt;Test&lt;/p&gt;
&lt;p&gt;or&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Option 2:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Recover(from preloaded APP FW) -&amp;gt;&amp;nbsp;Flash HQ Test FW -&amp;gt; --pinreset --&amp;gt; Test&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And you do you mean by,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Since I am not doing hard reset, Even though I recovered from Main App FW, Normal Operation can not be guaranteed with my HQ Test FW?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My Second procedure as mentioned in the ticket description where I try to power cycle the board helped to get it work?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks again for your response.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286576?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 22:09:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f11c4fe-a2b8-43a8-bd6b-1d6a458d27b9</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;To add to Nguyen&amp;#39;s reply there are some power issues to consider. Once the power supply is removed or switched off the bulk capacitance you mention starts to discharge. Once that capacitor voltage falls below some magic figure the nRF52832 will no longer be executing code and all port pins are in reset condition and so do not dissipate power; this means current consumption is extremely low, just a few 10s of nA. Note the voltage on the bulk capacitance has not discharged completely yet, and the voltage is high enough to prevent the nRF52832 reset circuitry from properly operating, so it is possible to restore power, fiddle with recover tools but yet be unable to actually get a working product.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The Work-around&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;The 15-minute delay allows the bulk capacitance to discharge below the magical reset voltage minimum-level-to-work-at-all, so now fiddling with tools and reprogramming works fine. Note that the discharge to near zero of the bulk capacitor is likely not through the nRF52832 draining the capacitor, but by other circuit elements - including capacitor leakage - which are likely to have higher leakage than the nRF52832 itself at low voltages of less than 1 volt.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The Test&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Turn off the power and immediately short &lt;strong&gt;&lt;em&gt;all&lt;/em&gt;&lt;/strong&gt; the bulk capacitors with a Gnd wire thus discharging them, Immediately switch back on and verify the recover-program procedure you are hoping for without using a 15-minute delay.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The Fix&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Add a crowbar, either on-board or off-board. This is a means of short-circuiting the capacitor to discharge quickly. Some regulators have this built-in, but most don&amp;#39;t and an external FET or other dummy load is required. It doesn&amp;#39;t need to be a short-circuit, just a low enough resistance to discharge &lt;strong&gt;&lt;em&gt;all&lt;/em&gt;&lt;/strong&gt; capacitors in the required time. Some capacitors are before and some after regulators, so some circuit knowledge is required.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Stuff to Watch For&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Any external device or circuit - say an FTDI serial link or a J-Link debugger tool - will add to the problem as they back-drive any parts of the circuit they are connected to making the problem worse and discharge slower, and can even prevent any reset and recover at all. If not already disconnecting the programmer when power-cycling then doing so may even be a simple fix.&lt;/p&gt;
&lt;p&gt;Nordic engineers have to look after the reindeer and&amp;nbsp;gifts this time of year, but when back they might have some voltage figures to quote; I don&amp;#39;t think the data sheet can be relied on here as the figures we need are not really specified, but the required discharge voltage is pretty low maybe 400mV or less.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Weird Issue observed with Nrf52832</title><link>https://devzone.nordicsemi.com/thread/286572?ContentTypeID=1</link><pubDate>Thu, 24 Dec 2020 21:08:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2c2442c-b203-4947-9581-f5924e1f1ef3</guid><dc:creator>Nguyen Hoan Hoang</dc:creator><description>&lt;p&gt;Recover from protection or set protection or any change for the reset pin or NFC pins requires a full reset, either by power cycle or hard reset&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>