<?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>UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71790/uicr-erase-when-the-battery-is-disconnected-of-the-device</link><description>Hi, 
 
 We encountered a problem if we take off the battery during functionning. 
 The UICR Register is completly erase when we put back the battery. 
 The issue is with lost our adress for the bootloader, so our device is completly broke. 
 Have you</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Feb 2021 15:37:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71790/uicr-erase-when-the-battery-is-disconnected-of-the-device" /><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295889?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:37:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dce63a2f-3a7e-45cc-87ab-36d7b1552db3</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Okay, thank you for all the answer, i think it will be preferable to use the Flash rather than UICR register in the futur.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295881?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:20:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c9b58e1-25ce-4492-9c49-a2bd527ca4be</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Then it will ok to use UICR. I just wanted to make sure you were aware of this behavior.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295877?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 15:09:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9771ebe5-fb54-4827-b212-45a19f36ed3f</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;We did not plan to use the readback protection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295747?ContentTypeID=1</link><pubDate>Tue, 23 Feb 2021 09:02:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed7a55a5-b501-4448-a7f4-a87fbd9d930c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;There is also the problem that UICR can&amp;#39;t be erased if you plan to enable the&amp;nbsp; debugger readback protection on the device like I mentioned in my first reply. Would it be an option to keep this data in a regular flash page instead?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295652?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 15:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:77dfaa0c-6b59-4d6f-8bdf-bdfbd92647e2</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;The UICR update happen at every startup,&lt;/p&gt;
&lt;p&gt;For the moment , the UICR is not stored on flash but it could be the good solution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295624?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 14:12:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c00508-e856-411e-a9d2-f29399653f99</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Does this UICR update always happen on startup, or just the first time the device is started after being programmed in production? Either way, it sounds like maybe the update routine should be made more robust to withstand unexpected resets.&lt;/p&gt;
&lt;p&gt;Do you keep a backup of the UICR in flash?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295583?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 13:15:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f88da448-6ac9-4516-a6dc-d0166e8afe47</guid><dc:creator>Julien</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, at the start we are erasing the UICR to rewrite data. The problem came from our pcb design where at the startup the power supply takes time to stabilize, and go below the brown-out voltage during this operation.&lt;/p&gt;
&lt;p&gt;I tried to use the POFCON register to prevent from writing the NVMC if voltage is to low, but my devies stay blocked in a loop. Maybe i need to read an event or something like that ?&lt;/p&gt;
&lt;p&gt;So my solution is to put a delay at the start, in order to let time from the power supply to be stabilized.&lt;/p&gt;
&lt;p&gt;Thanks,&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR Erase when the Battery is disconnected of the device</title><link>https://devzone.nordicsemi.com/thread/295368?ContentTypeID=1</link><pubDate>Fri, 19 Feb 2021 14:08:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e541696-37e2-4d19-8f53-0a398d671694</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Julien,&lt;/p&gt;
&lt;p&gt;This is certainly not expected behavior. Is there anything in your application code that uses the NVMC-&amp;gt; &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/nvmc.html?cp=4_0_0_3_2_8#register.ERASEUICR"&gt;ERASEUICR&lt;/a&gt; task? Also, does this always happen after you re-insert the battery, or does it occur more intermittently?&lt;/p&gt;
&lt;p&gt;And unlike on the 52832, it&amp;#39;s not possible to only erase the UICR after readback protection is enabled (ERASEUICR task is blocked):&amp;nbsp; &lt;span&gt;&lt;a title="Access port protection behavior" href="https://infocenter.nordicsemi.com/topic/ps_nrf52840/nvmc.html?cp=4_0_0_3_2_5#concept_protection"&gt;Access port protection behavior&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>