<?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 runtime write</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/72514/uicr-runtime-write</link><description>Hi, 
 What is the correct way to write to UICR at runtime? 
 I am using the code below but the MCU crashes on the first line with no call stack trace. 
 NRF_NVMC-&amp;gt;CONFIG = NVMC_CONFIG_WEN_Wen &amp;lt;&amp;lt; NVMC_CONFIG_WEN_Pos ; while (NRF_NVMC-&amp;gt;READY == NVMC_READY_READY_Busy</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Mar 2021 09:15:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/72514/uicr-runtime-write" /><item><title>RE: UICR runtime write</title><link>https://devzone.nordicsemi.com/thread/299411?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 09:15:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b32b38b8-f860-4696-b285-ecf059a76d32</guid><dc:creator>Dermot Murphy</dc:creator><description>&lt;p&gt;Hi Jorgen,&lt;/p&gt;
&lt;p&gt;Thanks for the info.&lt;/p&gt;
&lt;p&gt;Dermot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UICR runtime write</title><link>https://devzone.nordicsemi.com/thread/298707?ContentTypeID=1</link><pubDate>Tue, 09 Mar 2021 13:01:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc9f9078-8bb1-47d5-9aa9-74c9da6af1d8</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using a softdevice in your application? If you are, then all access to the NVMC peripheral needs to go through the &lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/flash_mem_api/flash_mem_api.html"&gt;Flash API&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is no API to write UICR while the softdevice is enabled, you need to disable the softdevice and re-enable it once writing is done.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>