<?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>Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/109484/reading-from-the-uicr-otp-registers-on-the-nrf5340-during-runtime</link><description>Looking at this forum post from 11 months ago, and I&amp;#39;m confused about the guidance given. https://devzone.nordicsemi.com/f/nordic-q-a/99083/reading-uicr-value-at-runtime-for-nrf53 
 
 Is it possible to read from the UICR using the build target nRF5340dk_nrf5340_cpuapp</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Mar 2026 08:18:39 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/109484/reading-from-the-uicr-otp-registers-on-the-nrf5340-during-runtime" /><item><title>RE: Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/thread/562702?ContentTypeID=1</link><pubDate>Fri, 06 Mar 2026 08:18:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222e0606-741a-4127-b42a-bc9d88ba06a1</guid><dc:creator>ColinC</dc:creator><description>&lt;p&gt;Hi Vidar,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for the quick response, I&amp;#39;ll have a look at it.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/thread/562541?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2026 12:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:063be866-6d40-4516-b2e1-af36afba86a4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Yes, via a secure service exposed by tf-m, please see this post:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/113714/static-partition-alignment"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/113714/static-partition-alignment&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/thread/562539?ContentTypeID=1</link><pubDate>Wed, 04 Mar 2026 12:05:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcbb140f-1c18-4288-8931-9d11dcf61497</guid><dc:creator>ColinC</dc:creator><description>&lt;p&gt;I am also trying to read from the UICR-&amp;gt;OTP register, though from a non-secure context (i.e the target is based on nrf5340_cpuapp_ns). Is this possible altogether? If no what the right way be to go about this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Cheers&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Colin&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/thread/475240?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 20:41:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fce83abc-8790-4b3b-9fcc-1f27c5829224</guid><dc:creator>cal.rubbo</dc:creator><description>&lt;p&gt;Wonderful! I verified it now. Glad it was something so simple, thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading from the UICR / OTP registers on the nRF5340 during runtime</title><link>https://devzone.nordicsemi.com/thread/475144?ContentTypeID=1</link><pubDate>Thu, 21 Mar 2024 13:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4f5f42e-51b1-4ef9-85b2-d37c84b2e622</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not aware of any limitations with reading the UICR register when you run the code in secure mode (i.e., built for the nRF5340dk_nrf5340_cpuapp target). Please try the attached code below and see if you get the same result.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/hello_5F00_world_5F00_uicr.zip"&gt;devzone.nordicsemi.com/.../hello_5F00_world_5F00_uicr.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I first set the OTP register with nrfjprog:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;nrfjprog --memwr 0x00FF8100 --val 0x12345
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then I ran the example and received the following log output:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting nRF Connect SDK v2.5.2 ***
NRF_UICR-&amp;gt;OTP[0] : 0x12345&lt;/pre&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>