<?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>secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/76403/secure-boot-on-the-nrf52840</link><description>Hi Team 
 From what I learned, the BPROT or ACL can protect the bootloader can not be modified by the application. 
 But is there any way to protect the chip from erased with &amp;quot;nrfjprog -f nrf52 --eraseall&amp;quot;? Because if the bootloader can be erased, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Jun 2021 15:05:50 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/76403/secure-boot-on-the-nrf52840" /><item><title>RE: secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/thread/317058?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 15:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8286fada-8b94-485c-9739-452a29393664</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Wendel"]Is there any&amp;nbsp;solutions to disable the SWD pins?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;No. It&amp;#39;s not possible to disable it in such a way that it prevents a debugger the possibility to trigger a erase-all operation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/thread/316842?ContentTypeID=1</link><pubDate>Thu, 24 Jun 2021 05:07:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8143d93-31a0-4578-a10d-dfcb8abdf0d0</guid><dc:creator>Wendel</dc:creator><description>&lt;p&gt;Hi Sigurd&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/76403/secure-boot-on-the-nrf52840/315907#315907"]No. If someone have access to the SWD pins, they can use a debugger to erase the chip.[/quote]
&lt;p&gt;Is there any&amp;nbsp;solutions to disable the SWD pins?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/thread/315986?ContentTypeID=1</link><pubDate>Fri, 18 Jun 2021 01:26:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:519f40be-2a9f-4968-b1d5-9795d70d99cb</guid><dc:creator>Wendel</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/thread/315907?ContentTypeID=1</link><pubDate>Thu, 17 Jun 2021 13:52:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1cd0f5a-583b-4d64-85a3-23b2d4b491dc</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]But is there any way to protect the chip from erased with &amp;quot;nrfjprog -f nrf52 --eraseall&amp;quot;?[/quote]
&lt;p&gt;No. If someone have access to the SWD pins, they can use a debugger to erase the chip.&lt;/p&gt;
[quote user="Wendel"]does that means the signature check happened after DFU?[/quote]
&lt;p&gt;&lt;span&gt;The NRF_BL_APP_SIGNATURE_CHECK_REQUIRED&lt;/span&gt;&lt;span&gt;&amp;nbsp;setting is to require signature&amp;nbsp;&lt;/span&gt;&lt;span&gt;&lt;a title="Boot validation" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/lib_secure_boot.html#secure_boot_validation"&gt;Boot validation&lt;/a&gt;. Signature is checked&amp;nbsp;&lt;span&gt;on each boot.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You might find these cases interesting:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/70726/how-to-validate-signature-check-requirements"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/70726/how-to-validate-signature-check-requirements&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/74838/dfu-error-invalid_parameter-after-uploading-of-all-packets-via-dfu/"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/74838/dfu-error-invalid_parameter-after-uploading-of-all-packets-via-dfu/&lt;/a&gt;&lt;/p&gt;
[quote user="Wendel"]Can I combine the init packet with bootloader+softdevice+application+bootloader setting, and program it into the chip directly?[/quote]
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;You are not flashing the init packet, but you can merge&amp;nbsp;&lt;span&gt;bootloader+softdevice+application+bootloader setting into a hex-file, and program it directly, yes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: secure boot on the nRF52840</title><link>https://devzone.nordicsemi.com/thread/315537?ContentTypeID=1</link><pubDate>Wed, 16 Jun 2021 08:48:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15ccf910-8634-4677-b8db-9ff64810b451</guid><dc:creator>Wendel</dc:creator><description>&lt;p&gt;Besides, the comment of NRF_BL_APP_SIGNATURE_CHECK_REQUIRED in sdk_config.h is &amp;quot;Perform signature check on the app. Requires the signature to be sent in the init packet.&amp;quot;, does that means the signature check happened after DFU?&lt;/p&gt;
&lt;p&gt;Can I combine the init packet with bootloader+softdevice+application+bootloader setting, and program it into the chip directly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>