<?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 and RAM discrepancies</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52378/uicr-and-ram-discrepancies</link><description>HI, 
 I&amp;#39;ve been using the Nordic Command Line Tools to do the following: 
 
 program an example hex file to the SoC 
 read the code, ram, and uicr registers and save to file A 
 program a different example hex file 
 read the code, ram, and uicr registers</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Sep 2019 10:44:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52378/uicr-and-ram-discrepancies" /><item><title>RE: UICR and RAM discrepancies</title><link>https://devzone.nordicsemi.com/thread/211192?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 10:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1bf595ee-8c41-40f8-979e-444a5471ff72</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]I&amp;#39;ve noticed that the ram file C never matches ram file A.[/quote]
&lt;p&gt;This is expected. Unused RAM will be uninitialized, so even if you program firmware that does exactly the same and runs the code in the exact same way, the RAM content will still not be identical. Also, even with a dead-simple application that does not depend on the outside world, it would be difficult to get the same RAM content, since for instance, you would need to stop and read the RAM content at the exact same point (to get the same stack contact).&amp;nbsp;&lt;/p&gt;
[quote user=""]I&amp;#39;ve noticed the UICR files C and A match sometimes but not always.[/quote]
&lt;p&gt;&amp;nbsp;Using the&amp;nbsp;--chiperase option will do a complete erase, including UICR. Therefore, the flash you read back after programming should be identical on all chips. A possible reason for UICR to be different is if the UICR is being written to by your firmware, which is sometimes done. Is that the case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>