<?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>NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27236/nrf52840-pdk-ble-secure-dfu-bootloader</link><description>files.rar 
 Hello,
I am using nRF5 SDK14.1.0 and soft device s140_nrf52840_5.0.0-2.alph.I can program the board witt the bootloader(both pca10056 and pca10056_debug) successfully and its advertising. I generated firmware package from the application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 20 May 2019 05:59:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27236/nrf52840-pdk-ble-secure-dfu-bootloader" /><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/187763?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 05:59:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc561fc7-0ecf-4863-8072-31f9d7a230a4</guid><dc:creator>Archana Fugare</dc:creator><description>&lt;p&gt;Please help me, my lib will not generated when I am using arm-gcc for rxternl micro ecc folder&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1558331969999v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107484?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 10:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e06d785-71f8-4a17-acae-39e66bd2d780</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;I fixed the problem. I was building the micro-ecc lib with the make file in(external\micro-ecc\nrf52_iar\armgcc) using arm-gcc. Now i built micro-ecc lib with iar and every thing works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107483?ContentTypeID=1</link><pubDate>Fri, 17 Nov 2017 09:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:69df6f45-dba9-4513-8220-26d8181c231b</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;I started all over again and i still have the same problem Which compiler did you use ? i used GCC and it works but does not work with IAR!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107482?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 15:09:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a8c66e8-bb8f-4678-9259-a0525d3f7a7b</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Yes, and I use IAR. Your bootloader works i will start all over again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107481?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 15:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f58a772-3397-43e4-bd38-b500161f49ec</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Here is the one without debug:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/nrf52840_5F00_xxaa_5F00_s140.hex"&gt;nrf52840_xxaa_s140.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Have you made sure you use softdevice S140 v5.0.0-2 alpha ? Which compiler did you use ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107480?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 14:44:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59664a6c-512e-45d5-b966-bd246be45df0</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,
I tested your bootloader and it works. I didn&amp;#39;t modified anything in bootloader and yes i replaced the public key. Can you use my .zip and public key with pca10056 bootloader not debug version? becuase my problem is in version validation and debug version skip this step as i said before uECC verify() return 0 which means the signature is not valid.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107479?ContentTypeID=1</link><pubDate>Thu, 16 Nov 2017 14:36:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2eafc885-aee2-4691-8318-3b9d406a7ea7</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nahro,&lt;/p&gt;
&lt;p&gt;I attached here the bootloader I generated and it worked fine with the .zip file you provided. I used NRFToolbox on Android to update. I used the pca10056_debug in SDK v14.1 to generate the bootloader.&lt;/p&gt;
&lt;p&gt;Have you made sure you didn&amp;#39;t modified the bootloader and you copied and replaced the public key with the key you generated?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bootloader_5F00_nrf52840_5F00_xxaa_5F00_s140.hex"&gt;bootloader_nrf52840_xxaa_s140.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you please try using this bootloader and test on your side ? Note that you can use RTT Viewer to see the log on the bootloader side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107478?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 13:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b067df7d-957d-4742-8fe8-09a8d8432acc</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;I am  still debugging the bootloader, so uECC verify() return 0 which means the signature is not valid! I use nrfutil version 3.3.2 to generate the key file and nrfutil keys display --key pk --format code private.key to get the public key.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107476?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:44:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bc9ac4a-faac-4b12-ad98-bde2423210d3</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;This telling that the hash the bootloader compute with the public key didn&amp;#39;t match with hash in the initdata.&lt;/p&gt;
&lt;p&gt;Have you tried to follow my step by step guide correctly ? You may want to send us your :
bootloader, the .zip file, your application, publickey , private key, so we can check here.&lt;/p&gt;
&lt;p&gt;You can use a simple SDK example as your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107475?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 12:42:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49a07e0d-4f5f-4fdb-b600-571014e04006</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;I think its a bug in the SDK because it verfiy the signature but return internal error! so i commented return NRF_DFU_RES_CODE_INVALID_OBJECT; and every thing works.&lt;/p&gt;
&lt;p&gt;err_code = nrf_crypto_ecdsa_verify_hash(sig_info_p256, &amp;amp;crypto_key_pk, &amp;amp;init_packet_hash, &amp;amp;crypto_sig);
if (err_code != NRF_SUCCESS)
{
NRF_LOG_ERROR(&amp;quot;Signature failed&amp;quot;);
//return NRF_DFU_RES_CODE_INVALID_OBJECT;
}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107477?ContentTypeID=1</link><pubDate>Wed, 15 Nov 2017 11:34:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a45887f5-4f61-4f63-8b59-5d727750d134</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,
I debugged the bootloader and it failed in nrf_crypto_ecdsa_verify_hash() function which return 11&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107473?ContentTypeID=1</link><pubDate>Tue, 14 Nov 2017 09:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b847e4a-8750-4a0d-aa70-4c73128d35d0</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nahro,&lt;/p&gt;
&lt;p&gt;Could you check and send us:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The log on the phone (you can swipe right on the phone to see the log when in nrfConnect, or install nRFLog app)&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The log on the bootloader, you need to enable either RTT or UART log&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/"&gt;sniffer trace&lt;/a&gt; of the DFU process if you have a sniffer&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107472?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 10:34:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c62a5953-d071-40ea-a887-d4c4d39535d8</guid><dc:creator>nahro</dc:creator><description>&lt;p&gt;Hi Hung,
Yes i did, and i overwrite dfu public_key.c in the project with the public key that i got from the key file that i used for creating firmware package.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840 PDK BLE Secure DFU Bootloader</title><link>https://devzone.nordicsemi.com/thread/107474?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 10:02:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3b21d57c-2550-4476-b13b-96433068a150</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Nahro,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s not clear how you build the bootloader, have you generated your private and public keys and update the bootloader project with your own public key ?&lt;/p&gt;
&lt;p&gt;Please follow my guide &lt;a href="https://devzone.nordicsemi.com/blogs/1085/getting-started-with-nordics-secure-dfu-bootloader/"&gt;here&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>