<?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>DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96704/dfu---non-secure-to-secure</link><description>Hi, we have an older product based on nRF51822 developed on SDK 9. The nRF51822 is programmed with DFU option but with non-secure. We want to update with a new secure bootloader and application. 
 I suppose that is possible, but we cannot find the secure</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 02 Mar 2023 08:15:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96704/dfu---non-secure-to-secure" /><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/412908?ContentTypeID=1</link><pubDate>Thu, 02 Mar 2023 08:15:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:faf96844-d091-4ba0-9cc3-42f669dc890f</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;I found out. My bad.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Jens&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/411832?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 07:34:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18895e5d-f9bb-41eb-b2ee-1d87a6543319</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;The bootloader should never be overwritten during an application DFU, so I think we need to investigate a bit more to understand what has happened.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;In what way does the bootloader not work? What have you learned by testing / debugging?&lt;/li&gt;
&lt;li&gt;Do you have a device with 128 kB or 256 kB lash?&lt;/li&gt;
&lt;li&gt;Can you share your memory layout (SoftDevice size, application start address and size, bootloader start address and size etc)?&lt;/li&gt;
&lt;li&gt;Do you use single bank or dual bank application updates?&lt;/li&gt;
&lt;li&gt;Can you make a flash dump before and after the update so that we can compare and see which regions have change during the DFU procedure? The simplest way to dump the flash is like this (assuming a 256 kB device):&amp;nbsp;&lt;code&gt;nrfjprog --memrd 0 --n 0x40000 &amp;gt; flash_dump.txt&lt;/code&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/411733?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 16:03:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78860485-00c9-49e0-88e9-c9d931fd888e</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;One more issue:&lt;/p&gt;
&lt;p&gt;When I update the APP on the nRF51822 with zip package then the bootloader does not work anymore / it is overwritten (I guess).&lt;/p&gt;
&lt;p&gt;Here is how I created the zip package:&lt;/p&gt;
&lt;p&gt;nrfutil dfu genpkg --application-version XXXX --dev-type XXXX --dev-revision XXXX --application app_v21.hex app_v21.zip&lt;/p&gt;
&lt;p&gt;How do I preserve the bootloader?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/410071?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 12:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22bff5a1-49e6-4756-8112-904fb66accd7</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;Super. Thanks for an excellent service!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/410070?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 12:32:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ea025bc-4261-49f4-bd7a-0b5cf2d53421</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Updating from the legacy bootloader to the secure bootloader via DFU is not supported. It is technically possible on some nRF52 series devices as described &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/18199/dfu---updating-from-legacy-sdk-v11-0-0-bootloader-to-secure-sdk-v12-x-0-bootloader/70272"&gt;in this post&lt;/a&gt;, but I am not able to see how you could do it on the nRF51.&lt;/p&gt;
[quote user="Jenzo"]If it is not possible to make convert to a secure bootloader, how do I create a dfu package with the nrfutil tool?&amp;nbsp;We have tried but it forces us to use a private key.&amp;nbsp;[/quote]
&lt;p&gt;You need to use an older version of nrfutil in order to generate packages for the legacy bootloader, specifically &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil/releases/tag/v0.5.2"&gt;nrfutil 0.5.2&lt;/a&gt;. This is the latest release with support for the legacy bootloader used in SDK 9.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU - non secure to secure</title><link>https://devzone.nordicsemi.com/thread/410042?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 10:48:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f3c70897-8190-4d6e-94f0-e105f50af9a6</guid><dc:creator>Jenzo</dc:creator><description>&lt;p&gt;in addtion to the above:&lt;/p&gt;
&lt;p&gt;If it is not possible to make convert to a secure bootloader, how do I create a dfu package with the nrfutil tool?&amp;nbsp;We have tried but it forces us to use a private key.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>