<?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>Set APPROTECT bit on nRF9160</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74699/set-approtect-bit-on-nrf9160</link><description>Hello, 
 My application runs in non-secure mode on the nRF9160, and I would like to disable external access to CPU, RAM and Flash. 
 I understand this is done by setting the APPROTECT bit in the UICR register. Ideally it will be done in production, with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 06 May 2021 12:43:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74699/set-approtect-bit-on-nrf9160" /><item><title>RE: Set APPROTECT bit on nRF9160</title><link>https://devzone.nordicsemi.com/thread/308552?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 12:43:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12eb187b-aa46-4fdc-ad63-33cbb34ede30</guid><dc:creator>NelsonGoncalves</dc:creator><description>&lt;p&gt;Thanks for the tip Markus.&lt;/p&gt;
&lt;p&gt;I will try the guideline, and if it does not work we will need to set the bit during production.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nelson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set APPROTECT bit on nRF9160</title><link>https://devzone.nordicsemi.com/thread/308546?ContentTypeID=1</link><pubDate>Thu, 06 May 2021 12:09:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f500266-341d-417c-a86e-c5d0ae21070b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello again Nelson,&lt;/p&gt;
&lt;p&gt;I just got confirmed that the UICR register only has read access from non-secure code.&lt;/p&gt;
&lt;p&gt;It is however possible to define own secure functions in SPM that can be called from the non-secure domain.&lt;/p&gt;
&lt;p&gt;Unfortunately, we do not have any concrete example for that. But there is a &lt;a href="https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/software/posts/using-a-custom-secure-partition-manager-wtih-your-application"&gt;guideline&lt;/a&gt; written approximately one year ago, which might help you get an idea of how you can write such a function.&lt;/p&gt;
&lt;p&gt;I hope this will help you!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set APPROTECT bit on nRF9160</title><link>https://devzone.nordicsemi.com/thread/308239?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 17:07:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fa4a1282-a5e3-4c61-a7e6-12e302c3085d</guid><dc:creator>NelsonGoncalves</dc:creator><description>&lt;p&gt;Thanks Markus.&lt;/p&gt;
&lt;p&gt;As is it stands, the best a non-secure app can do is to read the UICR and refuse to run if the APROTECT bit is not set.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;Nelson&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Set APPROTECT bit on nRF9160</title><link>https://devzone.nordicsemi.com/thread/308200?ContentTypeID=1</link><pubDate>Tue, 04 May 2021 13:32:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9587d724-f339-4006-afa9-29bf857c5158</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p&gt;Hello Nelson,&lt;/p&gt;
&lt;p&gt;According to&amp;nbsp;chapter 4.4.4 in the &lt;a href="https://infocenter.nordicsemi.com/pdf/nRF9160_PS_v2.0.pdf"&gt;nRF9160 product specification&lt;/a&gt;, you are not allowed to access the UICR register from non-secure code.&lt;/p&gt;
&lt;p&gt;There is however a &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/include/secure_services.html"&gt;secure services library&lt;/a&gt; which makes secure firmware functions available from non-secure firmware. Unfortunately, writing to the UICR register is not included.&lt;/p&gt;
&lt;p&gt;I will do some internal research and get this confirmed!&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>