<?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>which registers cant be erasable in nrf52, which can be possible to Read/Write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23888/which-registers-cant-be-erasable-in-nrf52-which-can-be-possible-to-read-write</link><description>hi,
i am using NRF52 custom board. i want to provide serial number to each board, which i want to read or write any time using my firmware. if i erase the bord it should not erase the serial number registers is it possible to make it happen. please give</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Jul 2017 22:53:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23888/which-registers-cant-be-erasable-in-nrf52-which-can-be-possible-to-read-write" /><item><title>RE: which registers cant be erasable in nrf52, which can be possible to Read/Write</title><link>https://devzone.nordicsemi.com/thread/93988?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 22:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79636074-ab46-45a9-ab12-fe9e1c73ebd4</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Have you considered using the MAC address as the serial?
It comes pre programmed.&lt;/p&gt;
&lt;p&gt;But I am not sure if they are absolutely guaranteed to be unique&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: which registers cant be erasable in nrf52, which can be possible to Read/Write</title><link>https://devzone.nordicsemi.com/thread/93989?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 12:40:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db0bb784-0b5a-4814-b17c-f8c9db40f79c</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I think UICR is the best alternative for storing serial number. You have a couple of options to leave the serial in UICR when flashing your application:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Use &lt;code&gt;--sectorerase&lt;/code&gt; option in combination with &lt;code&gt;--program&lt;/code&gt; when flashing, instead of &lt;code&gt;--eraseall&lt;/code&gt;. With this option, only the targeted non-volatile memory pages, excluding UICR will be erased.&lt;/li&gt;
&lt;li&gt;If you need to erase whole chip, you can read UICR before erasing, and reflash it after application:&lt;/li&gt;
&lt;/ol&gt;
&lt;blockquote&gt;
&lt;p&gt;nrfjprog --readuicr uicr.hex&lt;/p&gt;
&lt;p&gt;nrfjprog --eraseall&lt;/p&gt;
&lt;p&gt;nrfjprog --program application.hex&lt;/p&gt;
&lt;p&gt;nrfjprog --program uicr.hex&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>