<?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 DFU serial bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48979/secure-dfu-serial-bootloader</link><description>I&amp;#39;m busy implementing a (serial) DFU host, but sofar i&amp;#39;m unable to send a proper init packet. 
 The bootloader keeps returning an invalid signature error 
 If i open a .dat file with HxD is the visible data also in the order that it has to be send or</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 16 Jul 2019 13:49:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48979/secure-dfu-serial-bootloader" /><item><title>RE: Secure DFU serial bootloader</title><link>https://devzone.nordicsemi.com/thread/198755?ContentTypeID=1</link><pubDate>Tue, 16 Jul 2019 13:49:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f8dcd94-f53b-4478-9554-864c7b5b6e22</guid><dc:creator>Erwin v. H.</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I made a mistake on my side, the size of the Tx buffer was exact the same size as the expected MTU, I forgot to allocate a byte for the opcode.&lt;/p&gt;
&lt;p&gt;Therefore the signature failed everytime after uploading the init packet&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Erwin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU serial bootloader</title><link>https://devzone.nordicsemi.com/thread/196057?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 16:07:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca0ef29e-5a54-4cd3-82f0-e1625210f954</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;So to be clear, the update package should be generated using the private key, and the bootloader is made using the corresponding public key.&lt;/p&gt;
&lt;p&gt;While I am not familiar with HxD, the data should be sent in the same order it appears in the .dat file, which I presume is the same as what is displayed in any hex editor. (I.e. endianness is kept as written to file by nrfutil when generating the dfu package. / The binary data files in the zip are to be treated as a stream of bytes.)&lt;/p&gt;
&lt;p&gt;In order to check that everything is OK with the generated .dat file for the particular firmware and key pair, have you done a test of the serial DFU using nrfutil as the DFU controller (host)? (Full description in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fsdk_app_serial_dfu_bootloader.html"&gt;Secure DFU Bootloader over Serial Link (UART/USB) example documentation&lt;/a&gt;.)&lt;/p&gt;
&lt;p&gt;You can have a look at the contents of the package with &amp;quot;nrfutil pkg display &amp;lt;name of zip file&amp;gt;&amp;quot;, e.g. &amp;quot;nrfutil pkg display my_dfu_package.zip&amp;quot;, to check if everything seems to be in order.&lt;/p&gt;
&lt;p&gt;For a reference implementation you can have a look at the &lt;a href="https://github.com/NordicSemiconductor/pc-nrfutil"&gt;nrfutil source&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU serial bootloader</title><link>https://devzone.nordicsemi.com/thread/195361?ContentTypeID=1</link><pubDate>Fri, 28 Jun 2019 12:30:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12b9c5c0-b752-4068-a072-9dae7108943e</guid><dc:creator>Erwin v. H.</dc:creator><description>&lt;p&gt;Dear,&lt;/p&gt;
&lt;p&gt;Do you have any idea how i can continue.&lt;/p&gt;
&lt;p&gt;As is said i currently always get a signature error after sending the init packet.&lt;/p&gt;
&lt;p&gt;Do i have to search it in the method of sending or in a mismatch of signature/private key between the generated package and bootloader?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Erwin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU serial bootloader</title><link>https://devzone.nordicsemi.com/thread/194930?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 14:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb18179b-c238-43ec-9eb0-15f74c0859ad</guid><dc:creator>Erwin v. H.</dc:creator><description>&lt;p&gt;The bootloader is based on SDK 15.3 and I generated the update package an public key with the same private key (nRF utility)&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Erwin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure DFU serial bootloader</title><link>https://devzone.nordicsemi.com/thread/194902?ContentTypeID=1</link><pubDate>Wed, 26 Jun 2019 13:39:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d0ca2e7-2efc-4b32-8b81-6cfdb96ace6e</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What version of the DFU bootloader is on the DFU target, based on what version of the SDK?&lt;/p&gt;
&lt;p&gt;How do you generate the DFU update package?&lt;/p&gt;
&lt;p&gt;Are you using Secure DFU, and have you signed the update using the correct private key?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>