<?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 writing issue</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56162/uicr-writing-issue</link><description>Hi team, 
 I am using nRF5_SDK_15.3.0_59ac345 and nrf52832 controller. I am using nRF5_SDK_15.3.0_59ac345/examples/ble_peripheral/ble_app_uart example code and the hardware contains a button on long-press we need to write button status in the UICR register</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Jan 2020 05:43:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56162/uicr-writing-issue" /><item><title>RE: UICR writing issue</title><link>https://devzone.nordicsemi.com/thread/228018?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 05:43:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1349f999-094d-44c1-b0fa-c1b4826395fc</guid><dc:creator>IMRAN</dc:creator><description>&lt;p&gt;Hi, Tesc&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the response. I will use FDS in my application.&lt;/p&gt;
&lt;p&gt;please close this issue.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR writing issue</title><link>https://devzone.nordicsemi.com/thread/227736?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:11:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68127a3-6fd3-45b3-9893-5b94543f3b02</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Is the call to &lt;span&gt;nrf_sdh_disable_request()&lt;/span&gt; returning any status code? Have you done a debug session to see where the application gets stuck?&lt;/p&gt;
&lt;p&gt;Please note that the UICR is intended for configuration of the device, and not for repeated writes during normal operation. The way flash works is you can erase a full flash page to all bits being 1, and then you can write to individual addresses in flash by flipping bits that are 1 into 0. This means if you write several times to the same flash location in a row, any bit set to a 0 at any point will stay a 0. Any bit set to 0 will stay 0 until you erase the full page.&lt;/p&gt;
&lt;p&gt;If you want to store a piece of information in flash, and be able to change that data, a better option is to use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Flib_fds.html"&gt;Flash Data Storage (FDS)&lt;/a&gt; library from the SDK. With FDS, data is written to flash as &amp;quot;records&amp;quot;, an update is writing a new record (and invalidating the old one by setting a field in the header of the record to all 0), and a read gets you back the valid record. That way you do not need a full flash erase/write cycle every time you write one record, and you do not need to rewrite the whole flash page every time you need to update a value. FDS does not use the UICR page.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR writing issue</title><link>https://devzone.nordicsemi.com/thread/227439?ContentTypeID=1</link><pubDate>Fri, 03 Jan 2020 14:07:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7599ca57-4903-49b7-af49-155a4d7347c2</guid><dc:creator>IMRAN</dc:creator><description>&lt;p&gt;Hi Team, We look&amp;nbsp;forward to your inputs.&lt;/p&gt;
&lt;p&gt;We appreciate your quick response on this.&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>