<?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>Bootloader rejects DFU updates with custom key</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/57491/bootloader-rejects-dfu-updates-with-custom-key</link><description>Hi all, 
 We are successfully using the nRF52840 chip in one of our projects except for the DFU functionality. We tried following these tutorials without success: 
 devzone.nordicsemi.com/.../getting-started-with-nordics-secure-dfu-bootloader github.com</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 11 Feb 2020 11:59:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/57491/bootloader-rejects-dfu-updates-with-custom-key" /><item><title>RE: Bootloader rejects DFU updates with custom key</title><link>https://devzone.nordicsemi.com/thread/233703?ContentTypeID=1</link><pubDate>Tue, 11 Feb 2020 11:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fdb6945-c31e-4199-bfd1-09ee55eb5475</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think your private and public keys are not the same pair. I generated a new pair of keys as &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-f94f0b5a1f0e4315a9154d7e9d3338ac/243944_5F00_Key.zip"&gt;devzone.nordicsemi.com/.../243944_5F00_Key.zip&lt;/a&gt;&amp;nbsp;to test with your code, and they can work.&lt;/p&gt;
&lt;p&gt;Please see&amp;nbsp;&lt;a title="BLE Secure DFU Bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_dfu_bootloader.html?cp=7_1_4_4_0"&gt;BLE Secure DFU Bootloader&lt;/a&gt;&amp;nbsp;for testing.&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader rejects DFU updates with custom key</title><link>https://devzone.nordicsemi.com/thread/233603?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 16:59:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:004a0e60-623e-42b3-9ae9-f57834b22b89</guid><dc:creator>Andr&amp;#233;s</dc:creator><description>&lt;div class="p-workspace__primary_view_body"&gt;
&lt;div class="p-message_pane p-message_pane--classic-nav"&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div class="c-virtual_list c-virtual_list--scrollbar c-message_list c-scrollbar c-scrollbar--fade"&gt;
&lt;div class="c-scrollbar__hider"&gt;
&lt;div class="c-scrollbar__child"&gt;
&lt;div class="c-virtual_list__scroll_container"&gt;
&lt;div class="c-virtual_list__item" id="1581353547.026600"&gt;
&lt;div class="c-message_kit__background c-message_kit__background--hovered p-message_pane_message__message c-message_kit__message p-message_pane_message__message--last"&gt;
&lt;div class="c-message_kit__hover c-message_kit__hover--hovered"&gt;
&lt;div class="c-message_kit__actions c-message_kit__actions--default"&gt;
&lt;div class="c-message_kit__gutter"&gt;
&lt;div class="c-message_kit__gutter__right"&gt;
&lt;div class="c-message_kit__blocks c-message_kit__blocks--rich_text"&gt;
&lt;div class="c-message__message_blocks c-message__message_blocks--rich_text"&gt;
&lt;div class="p-block_kit_renderer"&gt;
&lt;div class="p-block_kit_renderer__block_wrapper p-block_kit_renderer__block_wrapper--first"&gt;
&lt;div class="p-rich_text_block" dir="auto"&gt;
&lt;pre class="c-mrkdwn__pre"&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;Hi Amanda,&lt;br /&gt;&lt;br /&gt;The question is how to generate the updates in a way that they are accepted by the secure bootloader, as we currently have to set NRF_DFU_REQUIRE_SIGNED_APP_UPDATE to 0 so that the bootloader accepts the zip and updates the application code. &lt;br /&gt;&lt;br /&gt;We have tested the functionality with the default public key in the secure bootloader example and it works ok.&lt;br /&gt;&lt;br /&gt;We have also tested the bootloader with our own private/public keys and that&amp;#39;s when the error comes up.&lt;br /&gt;The test was performed with the HTS example as the application code and our own key as the private key to generate the zip file.&lt;br /&gt;&lt;br /&gt;Please, find attached the .zip file that we forgot to include in the previous post:&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/pca10056_5F00_ble_5F00_forumCode.zip"&gt;devzone.nordicsemi.com/.../pca10056_5F00_ble_5F00_forumCode.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bootloader rejects DFU updates with custom key</title><link>https://devzone.nordicsemi.com/thread/233476?ContentTypeID=1</link><pubDate>Mon, 10 Feb 2020 10:07:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b7bc4cd-2b9b-4d2d-9fc5-8453bb851b90</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Not sure I understand your question or not.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you&amp;nbsp;generate your own&amp;nbsp;&lt;span&gt;public and private key?&amp;nbsp;&lt;/span&gt;&lt;span&gt;How did you generate the upload application image with your private key? See&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_keys.html"&gt;Working with keys&lt;/a&gt;&amp;nbsp;for instructions, and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_bootloader_dfu_validation.html#lib_bootloader_signatures"&gt;Signature Verification&lt;/a&gt;&amp;nbsp;for more information about signatures.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please refer to the&amp;nbsp;&lt;a title="BLE Secure DFU Bootloader" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_dfu_bootloader.html?cp=7_1_4_4_0"&gt;BLE Secure DFU Bootloader&lt;/a&gt;&amp;nbsp;section for \nRF5_SDK_15.3.0_59ac345\examples\dfu\secure_bootloader&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;If you want the a&lt;span&gt;pplication update may come from an unsigned package (&lt;/span&gt;&lt;code&gt;NRF_DFU_REQUIRE_SIGNED_APP_UPDATES&lt;/code&gt;&lt;span&gt;), please see&amp;nbsp;the&amp;nbsp;&lt;a title="Open Bootloader with DFU" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_open_bootloader.html?cp=7_1_4_4_2"&gt;Open Bootloader with DFU&lt;/a&gt;&amp;nbsp;section.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>