<?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 read NRF52840 HW SOC Revision in application ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92055/how-to-read-nrf52840-hw-soc-revision-in-application</link><description>Hello, 
 The part i am using is NRF52840 Rev 2 (Build Code Dx0) 
 How can i exact know what revision or build code the SOC has ? 
 I want to determine in application what revision of SOC my product has and perform different task. (Perform APPROTECT steps</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 17:05:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92055/how-to-read-nrf52840-hw-soc-revision-in-application" /><item><title>RE: How to read NRF52840 HW SOC Revision in application ?</title><link>https://devzone.nordicsemi.com/thread/386951?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 17:05:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14d7faee-bf52-48f3-ab1e-017f64e0ccbb</guid><dc:creator>Deep Patel</dc:creator><description>&lt;p&gt;Thanks. That works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to read NRF52840 HW SOC Revision in application ?</title><link>https://devzone.nordicsemi.com/thread/386931?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 14:12:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c78a9e61-a393-4166-97ee-2ffd020e51ba</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;You can read the FICR for example by:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#include &amp;lt;zephyr.h&amp;gt;
#include &amp;lt;inttypes.h&amp;gt;

void main(void)
{

	uint32_t a = NRF_FICR-&amp;gt;INFO.VARIANT;
	printk(&amp;quot;This board has the variant %&amp;quot; PRIu32 &amp;quot;\n&amp;quot;, a);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Devices that return&amp;nbsp;&lt;span&gt;AAF0(0x41414530/1094796592) and&amp;nbsp;AAFA(0x41414541/1094796609) has the latest app protect fix.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;regards&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Jared&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>