<?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>How should I use this OTP region</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78068/how-should-i-use-this-otp-region</link><description>Now I have some algorithm data that need to be written before the factory, which should not be changed in the future. How should I use this OTP region</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 30 Jul 2021 14:38:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78068/how-should-i-use-this-otp-region" /><item><title>RE: How should I use this OTP region</title><link>https://devzone.nordicsemi.com/thread/322699?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 14:38:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:900d3620-8afb-463c-95a1-45cb34a07d8d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It is possible to store data in the OTP registers during production programming if that&amp;#39;s what you want. As an example, here is how you can use nrfjprog with a J-link programmer to set UICR.OTP[0] to the value 0x123456&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;$ nrfjprog --memwr 0xff8100 --val 0x123456 // Store value&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;$ nrfjprog --memrd 0xff8100 // read back value from the same UICR register to verify the content&lt;/p&gt;
&lt;p&gt;Here is some additional reading relevant to the OTP registers that you may want to take a look at as well: &lt;span&gt;&lt;a title="Protecting the UICR content" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/kmu.html?cp=3_0_0_6_16_2#kmu_eraseprotect"&gt;Protecting the UICR content&lt;/a&gt;, &lt;a title="Writing to user information configuration registers (UICR)" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/nvmc.html?cp=3_0_0_6_20_3#concept_etv_shz_vr"&gt;Writing to user information configuration registers (UICR)&lt;/a&gt;,&amp;nbsp;&lt;a title="NVMC protection mechanisms" href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/nvmc.html?cp=3_0_0_6_20_5#concept_protection"&gt;NVMC protection mechanisms&lt;/a&gt;.&amp;nbsp; &lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>