<?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>Code protection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/107647/code-protection</link><description>We want to protect our firmware code from hacking/reading back. Is there a way to configure this inherently in the application or bootloader code so when it is loaded into the chip, it automatically is locked from the code being read out of the chip?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Jan 2024 23:46:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/107647/code-protection" /><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465886?ContentTypeID=1</link><pubDate>Wed, 24 Jan 2024 23:46:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f735a05-24ef-4b20-9438-dd54d102208e</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;That post&amp;#39;s code locked it up nice &amp;#39;n tight. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465673?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 18:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ff5515c-3053-455d-8166-7d9a4adf936b</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Access port protection is enabled by writing&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/uicr.html#register.APPROTECT"&gt;UICR.APPROTECT&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;Enabled&lt;/code&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;and performing any reset.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Access port protection is disabled by issuing an ERASEALL command via CTRL-AP. This command will erase the flash, UICR, and RAM, including&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/uicr.html#register.APPROTECT"&gt;UICR.APPROTECT&lt;/a&gt;. Erasing UICR will set&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/uicr.html#register.APPROTECT"&gt;UICR.APPROTECT&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;value to&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;code&gt;Disabled&lt;/code&gt;. CTRL-AP is described in more detail in&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;a title="The control access port (CTRL-AP) is a custom access port that enables control of the device when other access ports in the DAP are disabled by the access port protection." href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/dif.html?cp=5_4_0_3_7_1#unique_1499412165"&gt;CTRL-AP - Control access port&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There is an example code in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70518/nrf52840-soc-jtag-port-disabling/289395"&gt;this post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465667?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 17:10:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3001a24f-028f-4de8-bea6-27f8645da670</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Is there a way to embed this read protection into&amp;nbsp;application .hex or bootloader .hex. And not to have to plug each one up to jtag in order to do this? That way we can flash devices en masse?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465655?ContentTypeID=1</link><pubDate>Tue, 23 Jan 2024 16:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fed04694-d705-4349-aed1-9befa0c04260</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;I think so. Then, you can use the command &amp;quot;nrfjprog --rbp ALL&amp;quot; to enable the readback protection mechanism.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465458?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 21:38:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:edfc6392-10af-49bf-8b8d-c377e731428f</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;the top of the chip reads;&lt;/p&gt;
&lt;p&gt;N52811&lt;/p&gt;
&lt;p&gt;QCAAA0&lt;/p&gt;
&lt;p&gt;2242AF&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I take it that means it&amp;#39;s revision 1; Ax0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465456?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 21:25:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03a29956-c31d-477b-a01a-c58dcb8899a0</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;span&gt;&lt;a title="SoC revisions and variants" href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf52811/COMP/nrf52811/nrf52811_ic_revision_overview.html?cp=5_4_3_0"&gt;SoC revisions and variants&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705958702791v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465455?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 21:21:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b45c2942-5314-414c-bcf2-2ca675f1bc73</guid><dc:creator>kclamb2015@gmail.com</dc:creator><description>&lt;p&gt;Not sure where to locate the &amp;quot;build codes&amp;quot;&lt;/p&gt;
&lt;p&gt;Is this what you mean?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1705958369156v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;NRF52811-QCAA-R&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if&amp;nbsp;I understand this (which is an overstatement) - it inherently protects it unless otherwise disabled/changed?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Kevin Lamb&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Code protection</title><link>https://devzone.nordicsemi.com/thread/465439?ContentTypeID=1</link><pubDate>Mon, 22 Jan 2024 19:18:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69258c89-7cc5-44c5-b89b-bdd769dc1b20</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What&amp;nbsp;&lt;span&gt;build codes&lt;/span&gt; of nRF52811 are you using? You can take a look at the nRF52811&amp;nbsp;&lt;a title="Access port protection" href="https://infocenter.nordicsemi.com/topic/ps_nrf52811/dif.html?cp=5_4_0_3_7_1#concept_udr_mns_1s"&gt;Access port protection&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>