<?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>nRF9160 dk get hardware id</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66779/nrf9160-dk-get-hardware-id</link><description>Hello, 
 
 Is it possible to read the hardware ID of a nRF9160 from a non secure firmware? 
 
 Best regards, 
 Vlad</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Oct 2020 12:05:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66779/nrf9160-dk-get-hardware-id" /><item><title>RE: nRF9160 dk get hardware id</title><link>https://devzone.nordicsemi.com/thread/273215?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 12:05:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cd48659-0605-4c4a-a006-7bc7a8713142</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Vlad,&lt;br /&gt;&lt;br /&gt;I would recommend using the IMEI instead,&amp;nbsp;since that is also unique for each nRF9160 SiP.&lt;br /&gt;This can be gathered from the AT command &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fgeneral%2Fcgsn_set.html&amp;amp;cp=2_1_3_3_0" rel="noopener noreferrer" target="_blank"&gt;AT+CGSN&lt;/a&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Since the FICR structure (NRF_FICR_S) &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/ficr.html?cp=2_0_0_3_4" rel="noopener noreferrer" target="_blank"&gt;structure is secure only.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Any access to this region must be done using a trustzone call.&lt;br /&gt;&lt;br /&gt;Add&lt;span&gt;&amp;nbsp;the&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_SPM_SECURE_SERVICES=y into your prj.conf&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;and use the&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/secure_services/src/main.c#L39" rel="noopener noreferrer" target="_blank"&gt;&amp;nbsp;spm_request_read to read FICR.&lt;br /&gt;Y&lt;/a&gt;ou can use the &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/master/samples/nrf9160/secure_services/src/main.c"&gt;Secure Services sample a&lt;/a&gt;s reference.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 dk get hardware id</title><link>https://devzone.nordicsemi.com/thread/273195?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 11:23:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17dd55a4-ed87-49e3-a161-cdbcea19506d</guid><dc:creator>Vlad T</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thank you for your quick reply.&lt;/p&gt;
&lt;p&gt;I want to read the &lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf9160/ficr.html#register.INFO.DEVICEID"&gt;DEVICEID &lt;/a&gt;register from the FICR peripheral. Unfortunately for me the &lt;a href="https://github.com/NordicSemiconductor/nrfx/blob/6c31cb7d0e4038afa1efc9bfed40206adfd7b83e/mdk/nrf9160.h#L2130"&gt;ncs defines only a secure definition for the FICR registers&lt;/a&gt; so it can&amp;#39;t be read by a non secure firmware.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there a way to get the information form DEVICEID? If not is there another unique id register that I can read?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 dk get hardware id</title><link>https://devzone.nordicsemi.com/thread/273189?ContentTypeID=1</link><pubDate>Tue, 06 Oct 2020 11:06:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0268da54-222a-47b7-8f15-e2770250df5f</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Vlad,&amp;nbsp;&lt;br /&gt;What do you mean by hardware ID?&lt;br /&gt;&lt;br /&gt;If you mean the information you can get by issuing the AT command &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fgeneral%2Fhwversion_set.html&amp;amp;cp=2_1_3_6_0" rel="noopener noreferrer" target="_blank"&gt;AT%HWVERSION&lt;/a&gt;, then yes that is possible to get.&lt;br /&gt;Just open &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/bsdlib/doc/at_commands.html" rel="noopener noreferrer" target="_blank"&gt;a AT socket &lt;/a&gt;and issue the command in your FW that runs in the non-secure area.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>