<?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>Using Debug Bootloader with Generated Public Key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61115/using-debug-bootloader-with-generated-public-key</link><description>Hi team, 
 I am working on SDK v16.0.0 and using the nRF52840 DK. I generated a new private key public key pair using nrfutil and used that to generate dfu_public_key.c to replace the default one in the SDK. However, when I build the secure ble bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 May 2020 06:24:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61115/using-debug-bootloader-with-generated-public-key" /><item><title>RE: Using Debug Bootloader with Generated Public Key</title><link>https://devzone.nordicsemi.com/thread/248850?ContentTypeID=1</link><pubDate>Fri, 08 May 2020 06:24:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846b0d9b-3927-4fea-a851-280785668abe</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Good to hear that it works now. The debug variant allows you to skip version checks and ignore CRC errors during boot validation. This more relaxed validation check is enabled by building the example with the NRF_DFU_DEBUG_VERSION flag. The init packet must also be generated with the debug mode option enabled in nrfutil.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Debug Bootloader with Generated Public Key</title><link>https://devzone.nordicsemi.com/thread/248794?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 16:46:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6428fc0b-93ae-4a3e-85a1-be251847b78c</guid><dc:creator>Akash Patel</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thanks for the confirmation, I had tried to build the project several times yesterday but it wouldn&amp;#39;t take my generated public key. I did a rebuild of the project and it works now.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/61115/using-debug-bootloader-with-generated-public-key/248721"]It also allows you to skip certain validation checks to make it easier to work with during development.&amp;nbsp;[/quote]
&lt;p&gt;Do you know which validation checks?&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Akash Patel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Using Debug Bootloader with Generated Public Key</title><link>https://devzone.nordicsemi.com/thread/248721?ContentTypeID=1</link><pubDate>Thu, 07 May 2020 13:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21c24724-7296-4961-b8e3-1bd040c3a380</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Akash,&lt;/p&gt;
&lt;p&gt;It should be enough to just replace the existing key in dfu_public_key.c. The linker should also have complained if there&amp;nbsp;were&amp;nbsp;multiple definitions of the &amp;quot;pk[64]&amp;quot; array.&amp;nbsp;&lt;/p&gt;
[quote user=""]I noticed in the non-debug version of the example, it is using my key and I can then do a DFU of signed images with my private key. With debug version of the example, it is only taking the test images provided in the SDK (nRF5_SDK_16.0.0_98a08e2\examples\dfu\secure_dfu_test_images\ble\nrf52840)[/quote]
&lt;p&gt;&amp;nbsp;Please double check that your key is used in dfu_public_key.c regardless of the&amp;nbsp;NRF_DFU_DEBUG_VERSION symbol.&lt;/p&gt;
[quote user=""]Also, can you help me understand what the differences are between the debug and non-debug versions of the project? It looks like logging over RTT is enabled in the debug project. Anything else?[/quote]
&lt;p&gt;&amp;nbsp;Logging is the main one. It also allows you to skip certain validation checks to make it easier to work with during development.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>