<?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>nRF Connect, APPROTECT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/74325/nrf-connect-approtect</link><description>Hi, 
 I would like to enable the APPROTECT readback protection. 
 What is the advised way to do this when using nrf connect/zephyr? The following line doesn&amp;#39;t work (the &amp;#39;at&amp;#39; attribute is ignored): 
 
 I&amp;#39;m thinking this could be fixed by using a &amp;#39;section</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Apr 2021 13:43:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/74325/nrf-connect-approtect" /><item><title>RE: nRF Connect, APPROTECT</title><link>https://devzone.nordicsemi.com/thread/306561?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 13:43:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2b54f31-e90a-4da3-8a3c-b3d181c28e2a</guid><dc:creator>basvkesteren</dc:creator><description>&lt;p&gt;Okay, far enough,&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect, APPROTECT</title><link>https://devzone.nordicsemi.com/thread/306548?ContentTypeID=1</link><pubDate>Fri, 23 Apr 2021 13:06:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5558fbef-94f7-465d-a1c4-ed3247221d7b</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;At this moment, such a solution would require a custom linker script where you define the uicr section, which is possible, but not recommended.&lt;/p&gt;
&lt;p&gt;I am afraid that the easiest thing to do is to either program via nrfjprog, or add a small snippet in your firmware that checks the APPROTECT field and writes to it if it is not set (and does a reset).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect, APPROTECT</title><link>https://devzone.nordicsemi.com/thread/306328?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 12:26:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17940b47-1d98-4092-929d-d79d625ed89f</guid><dc:creator>basvkesteren</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;The appropriate way to place something on a absolute address is to use a linker script, but: there&amp;#39;s no uicr section defined as a linker section, meaning that if you try this you will get an out-of-bounds error when linking your program.&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Indeed. I was hoping for some pointers on how to define a new section. I know my way around gcc linkerscripts, but don&amp;#39;t now how to do this when using the ncs toolchain..&lt;/p&gt;
&lt;p&gt;Using nrfjprog is another option, but yet one more step to take in the programming sequence. I was (still am :)) hoping&amp;nbsp;for a single &amp;#39;burn hex, boot, done&amp;#39; sequence.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect, APPROTECT</title><link>https://devzone.nordicsemi.com/thread/306322?ContentTypeID=1</link><pubDate>Thu, 22 Apr 2021 12:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e908e18-74f8-4f05-b3dc-3867f19dca49</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The appropriate way to place something on a absolute address is to use a linker script, but: there&amp;#39;s no uicr section defined as a linker section, meaning that if you try this you will get an out-of-bounds error when linking your program.&lt;/p&gt;
&lt;p&gt;You can call &amp;quot;nrfjprog --rbp ALL &amp;amp;&amp;amp; nrfjprog --reset&amp;quot; to readback protect and reset the device (to latch the new configuration).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>