<?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>NRFFW registers in the UICR get erased when I write to the CUSTOMER registers by loading a binary file through JLink</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59800/nrffw-registers-in-the-uicr-get-erased-when-i-write-to-the-customer-registers-by-loading-a-binary-file-through-jlink</link><description>I&amp;#39;m trying to understand why this happens. 
 My application uses the softdevice, which configures some NRFFW registers. I program my application, bootloader, SoftDevice via nrfjprog. 
 Then, I write 8 bytes to the CUSTOMER registers via a binary file</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Apr 2020 07:56:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59800/nrffw-registers-in-the-uicr-get-erased-when-i-write-to-the-customer-registers-by-loading-a-binary-file-through-jlink" /><item><title>RE: NRFFW registers in the UICR get erased when I write to the CUSTOMER registers by loading a binary file through JLink</title><link>https://devzone.nordicsemi.com/thread/243100?ContentTypeID=1</link><pubDate>Thu, 02 Apr 2020 07:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f224fb8d-20d2-4f8e-8e2a-f4cf59da0a94</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;#39;nrfjprog --memwr 0x10001080 --val &amp;lt;value&amp;gt;&amp;#39; should work. Please make sure you are not appending the &amp;#39; --sectorerase&amp;#39; option in your case as that will erase the entire UICR section before writing. --sectorease will be needed if you are updating an existing value.&lt;/p&gt;
&lt;p&gt;The bootloader uses UICR-&amp;gt;NRFFW[0] and UICR-&amp;gt;NRFFW[1] to inform the MBR of its start address and where the MBR param flash page has been allocated. These are included in the bootloader image. But other UICR configurations such as UICR.PSELRESET is usually set at runtime by the startup code (in system_nrf52840.c). The Softdevice does not store configurations to UICR or FLASH.&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>