<?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 to write data to UICR？</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72230/how-to-write-data-to-uicr</link><description>Hello, 
 
 In nRF52832 we use these commands to write data to user information configuration register: 
 nrfjprog -f nrf52 --memwr 0x10001080 --val 0x00010000 
 and use memcpy to get the data in C code. 
 My question is: how do we do it in nRF5340? what</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 03 Mar 2021 03:29:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72230/how-to-write-data-to-uicr" /><item><title>RE: how to write data to UICR？</title><link>https://devzone.nordicsemi.com/thread/297344?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 03:29:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5013dec-83cf-4148-b41f-fbe5cc10acb8</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;Hi, Einar,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I changed the command to:&lt;/p&gt;
&lt;p&gt;nrfjprog -f nrf53 --memwr 0x00FF8100 --val 0x00010000&lt;/p&gt;
&lt;p&gt;It works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Carl.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to write data to UICR？</title><link>https://devzone.nordicsemi.com/thread/297343?ContentTypeID=1</link><pubDate>Wed, 03 Mar 2021 03:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95411a5b-4860-4844-8f4b-d6f3627a0902</guid><dc:creator>Carl Sun</dc:creator><description>&lt;p&gt;Hi, Einar.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In nRF5340 DK, I did this:&lt;/p&gt;
&lt;p&gt;1. use nRF connect to &amp;quot;Erase all&amp;quot;.&lt;/p&gt;
&lt;p&gt;2. in power shell issued this two commands:&lt;/p&gt;
&lt;p&gt;nrfjprog -f nrf52 --memwr 0x00FF8100 --val 0x00010000&lt;/p&gt;
&lt;p&gt;nrfjprog -f nrf52 --memwr 0x00FF8000 --val 0x00010000&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/960x720/__key/communityserver-discussions-components-files/4/aa.jpg" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;but I got error message, it seems I did write successfully.&lt;/p&gt;
&lt;p&gt;What is the problem?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Carl.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to write data to UICR？</title><link>https://devzone.nordicsemi.com/thread/297195?ContentTypeID=1</link><pubDate>Tue, 02 Mar 2021 13:15:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00acf294-0712-48d3-b62c-5c15055444af</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi Carl,&lt;/p&gt;
&lt;p&gt;The UICR is just like any other flash memory, so you write it in the exact same way, for instance using nrfjprog like you suggest in your post. The only limitation is that the OTM emulation only allows writing once to each half-word, but that is generally no problem. You can see the available addresses under &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf5340/chapters/uicr/doc/uicr.html?cp=3_0_0_4_3_2"&gt;UICR in the product specification&lt;/a&gt;. Note that if you use some SDK modules that may also use some of the UICR OTP registers for other purposes (such as key storage in the immutable bootloader etc.) - if that is the case you should ensure no overlap.&lt;/p&gt;
&lt;p&gt;As you can see from the PS, the UICR OTP registers for the app core starts at&amp;nbsp;0x00FF8100.&lt;/p&gt;
&lt;p&gt;Einar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>