<?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>Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35598/buttonless-dfu-with-bond-not-working</link><description>Hi, 
 I&amp;#39;m struggling to get Buttonless DFU with bond enabled working. 
 Setup details: 
 1) SDK 14.2 
 2) DK board - nrf52832 
 3) nrfconnect app on Android phone (8.0) : 
 DFU settings = Pkts receipt notification procedure : ON 
 Number of packets :</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Jul 2018 00:19:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35598/buttonless-dfu-with-bond-not-working" /><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140580?ContentTypeID=1</link><pubDate>Thu, 19 Jul 2018 00:19:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dee2ba4a-22eb-4e9c-a437-e4079bc0eb29</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt; I think there is something with the debug bootloader which accepts packets that are not signed (or actually signed with a fixed key, for debugging purposes).&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Make sense&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140477?ContentTypeID=1</link><pubDate>Wed, 18 Jul 2018 05:43:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5986ecd-a111-46a0-8077-4caea88f8104</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I don&amp;#39;t know exactly what the difference is. I added all the&amp;nbsp;logging&amp;nbsp;files to the bootloader project (not _debug, I realize I should have used the _debug project instead to save some time). But other than that, I am not sure what the difference between the two are, that would cause any issues.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think there is something with the debug bootloader which accepts packets that are not signed (or actually signed with a fixed key, for debugging purposes). But why it works without bonding, and not with bonding, I am not sure.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140440?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 16:38:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:60eb00f1-ec44-41f2-9b05-39187b9b6ee0</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Tried with SDK you sent me and it works fine without any issues. Next step I started carefully comparing the files and configuration if something is different.&lt;/p&gt;
&lt;p&gt;Only difference I spotted is I was working with SDK\examples\dfu\bootloader_secure_ble\&lt;strong&gt;pca10040_debug&lt;/strong&gt;\armgcc. So I switched my SDK\bootloader to use SDK\examples\dfu\bootloader_secure_ble\&lt;strong&gt;pca10040&lt;/strong&gt;\armgcc and it worked as well ;).&lt;/p&gt;
&lt;p&gt;So what is causing in &lt;strong&gt;pca10040_debug&lt;/strong&gt;\armgcc? I used this config to see nrf logger messages on Jlink RTT viewer, this be a reason? _debug bootloader does not match with non debug version of app?&lt;/p&gt;
&lt;p&gt;Will dig further and let you know.&lt;/p&gt;
&lt;p&gt;Appreciate your time and effort in resolving my issues.&lt;/p&gt;
&lt;p&gt;Thank you very much.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140283?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 18:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82138d98-01b2-4ece-b10d-9482c8d12a60</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Attached you will find a fresh copy of the SDK, where I only replaced the files you attached in my_dfu.rar and power_strip.rar.&lt;/p&gt;
&lt;p&gt;Your app is located in SDK\examples\Suresh\power_strip\power_strip&lt;/p&gt;
&lt;p&gt;the bootloader is located in SDK\examples\dfu\bootloader_secure_ble\pca10040\armgcc&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There (in the bootloader folder) you will also find a folder called &amp;quot;application&amp;quot;. When you run SDK\examples\dfu\bootloader_secure_ble\pca10040\arngcc\flash_everything.bat it will run your prog_uicr.bat code, flash softdevice, bootloader, bootloader_settings, and application, then reset, and then create the dfu_packages inside the &amp;quot;application&amp;quot; folder. Try to connect to it with nRF Connect and then bond, and upload one of the dfu packs, Suresh_app2.zip or Suresh_app3.zip. They have application version 2 and 3, respectively (the application already running has application version 1, so the packets must start at 2).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The only file I didn&amp;#39;t replace in the SDK was the makefile.windows, because I had to use my own compiler. Just edit that file, and you should be able to compile your own version of the bootloader, with a new set of keys(as well of your own application). The keys, by the way, are also located in the bootloader folder (armgcc).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Give it a go, and let me know if this one works for you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cb8b219e17cc4cd0af02bb1ba2a5a2b3/SDK14.2.0_5F00_Suresh.zip"&gt;devzone.nordicsemi.com/.../SDK14.2.0_5F00_Suresh.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140251?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 15:02:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2aacf9e-1513-4d66-8db0-a06de5adc993</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; In the project that I sent you I used your project, and the bootloader found in SDK14.2.0\examples\dfu\bootloader_secure_ble\pca10040\arm5_no_packse.&lt;/strong&gt;&lt;br /&gt;Could you try with &amp;quot;nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\pca10040_debug\armgcc&amp;quot; with sdk_dfu_config.h file attached in my_dfu.zip please.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; It seems like the hw-version, sd-req is correct. I assume that you use the same private.key as you use without bonding, so I assume that it is correct as well.&lt;/strong&gt;&lt;br /&gt;I generated the private.key, public_key.c, building micro-ecc library file afresh using below commands(all these runs in batch file)&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;em&gt; nrfutil.exe keys generate private.key&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; nrfutil keys display --key pk --format code private.key --out_file public_key.c&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; cd C:\Data\Project\Device\SDK\nordic\nRF5_SDK_14.2.0_17b948a\external\micro-ecc\nrf52hf_armgcc\armgcc&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; rm -r _build&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; make&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp; &amp;nbsp;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; copy C:\Data\Project\Device\repository\device\nordic\tools\public_key.c C:\Data\Project\Device\SDK\nordic\nRF5_SDK_14.2.0_17b948a\examples\dfu\dfu_req_handling\public_key.c&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; cd C:\Data\Project\Device\SDK\nordic\nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\pca10040_debug\armgcc&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; rm -r _build&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&amp;nbsp;&amp;nbsp; make&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; Do you use the same keyset with your bootloader with and without bonding? If not, are you sure you are not mixing them up?&lt;/strong&gt;&lt;br /&gt;I usually clean up the old keys to not confuse with stray files. So, it is always fresh set key-pairs.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; The difference when you require bonding and when you don&amp;#39;t require bonding is that you need to store some bootloader settings that accepts the first application,&lt;/strong&gt;&lt;br /&gt;What bootloader settings I might have missed? &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; I also get the INVALID_OBJECT message. What application-version do you use in your bootloader_settings file? &amp;nbsp;&lt;/strong&gt;&lt;br /&gt;When sd_bl_app_merged.hex is generated application-version = 1 and when generating dfu package it is 2. You can verify with nrfutil display command for confirmation.&lt;br /&gt;&lt;br /&gt;The way sd_bl_app_merged.hex file generated is as below (you can also generate using my app makefile command flash_sd_bl_app)&lt;br /&gt;&lt;br /&gt;&lt;em&gt;nrfutil settings generate --family NRF52 --application C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\nrf52832_xxaa.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_setting.hex&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Generated Bootloader DFU settings .hex file and stored it in: C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_setting.hex&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Bootloader DFU Settings:&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* File:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_setting.hex&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Family:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nRF52&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Start Address:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0007F000&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x539861AA&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Settings Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* App Version:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Bootloader Version:&amp;nbsp;&amp;nbsp; 0x00000001 (1)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Bank Layout:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Current Bank:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000000&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Application Size:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00012D44 (77124 bytes)&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Application CRC:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xEEC9D449&lt;/em&gt;&lt;br /&gt;&lt;em&gt;* Bank0 Bank Code:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x00000001&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;mergehex --merge C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_setting.hex C:\Data\Project\Device\SDK\nordic\nRF5_SDK_14.2.0_17b948a\examples\dfu\bootloader_secure_ble\pca10040_debug\armgcc\_build\nrf52832_xxaa_s132.hex&amp;nbsp; --output C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_merged.hex&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Parsing input hex files.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Merging files.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Storing merged file.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;mergehex --merge C:\Data\Project\Device\SDK\nordic\nRF5_SDK_14.2.0_17b948a\components\softdevice\s132\hex\s132_nrf52_5.0.0_softdevice.hex C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\bootloader_merged.hex C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\nrf52832_xxaa.hex --output C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\sd_bl_app_merged.hex&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Parsing input hex files.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Merging files.&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Storing merged file.&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;DFU package is generated as below&lt;br /&gt;&lt;br /&gt;&lt;em&gt;nrfutil pkg generate --hw-version 52 --sd-req 0x9d --application-version 1 --application C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\nrf52832_xxaa.hex&amp;nbsp; --key-file C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\private.key C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\app_dfu_package.zip&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Zip created at C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\app_dfu_package.zip&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;I suggest you try with gcc version and please use my app makefile commands to generate sd_bl_app_merged.hex and app_dfu_package.zip so that we are in sync(ignore this line if you are already doing it)&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&amp;gt;&amp;gt; Have you changed anything else in the bootloader, other than what we have discussed?&lt;/strong&gt;&lt;br /&gt;I have attached all the files which I changed in bootloader but I believe those should not cause this issue.&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Suresh&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my_5F00_dfu.zip"&gt;devzone.nordicsemi.com/.../my_5F00_dfu.zip&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140188?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 11:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12935fc6-37f9-4c51-850a-d16b62287940</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I understand.&lt;/p&gt;
&lt;p&gt;Yes. 0x9D is the correct sd-req. You can see the list of the different softdevices by typing the command:&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;em&gt;nrfutil pkg generate --help&lt;/em&gt;&amp;quot;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In the project that I sent you I used your project, and the bootloader found in SDK14.2.0\examples\dfu\bootloader_secure_ble\pca10040\arm5_no_packse.&lt;/p&gt;
&lt;p&gt;The only changes are:&lt;/p&gt;
&lt;p&gt;in sdk_config.h:&amp;nbsp;#define NRF_DFU_BLE_REQUIRES_BONDS 1&lt;/p&gt;
&lt;p&gt;and the gap_params_init() function, as described above, to change the address when the bootloader starts.&lt;/p&gt;
&lt;p&gt;INVALID_OBJECT means that the DFU packet that you are sending is not accepted by the bootloader. The reasons for this is usually that it has used a wrong&amp;nbsp;signing key (private.key), wrong hw-version, wrong sd-req or insufficient application-version.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It seems like the hw-version, sd-req is correct. I assume that you use the same private.key as you use without bonding, so I assume that it is correct as well.&lt;/p&gt;
&lt;p&gt;This leaves the application-version.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Do you use the same keyset with your bootloader with and without bonding? If not, are you sure you are not mixing them up?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The difference when you require bonding and when you don&amp;#39;t require bonding is that you need to store some bootloader settings that accepts the first application, which is required for bonding with the device that is going to perform the DFU transfer. This is not needed in DFU without bonding, because you can start directly in bootloader mode, without having any bonding information stored.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I tested your files (my_bin.rar) with my bootloader(changed the private.key&amp;nbsp;to the one you included). Then flashed the sd_bl_app_merged.hex file, and the bootloader_settings.hex-file (I also tried without. Didn&amp;#39;t know whether it was merged in the other file).&lt;/p&gt;
&lt;p&gt;I also get the INVALID_OBJECT message.&amp;nbsp;What application-version do you use in your bootloader_settings file? Have you changed anything else in the bootloader, other than what we have discussed?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140159?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 06:45:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6ee4327c-f801-482b-b7ee-ef6f13920f74</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;The GATT_WRITE issue is resloved but I still see the INVALID_OBJECT. please see the above digest for more details.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140155?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 06:35:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:515fa87b-7448-4f31-92d1-63ff2712ae1e</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry. I was out of office the previous week. I see that you have been working a bit on this. I assume from your last reply that it is working now. Is that correct?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140118?ContentTypeID=1</link><pubDate>Sat, 14 Jul 2018 15:32:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c813ba5-4ce1-489a-a3a1-b0a45c2a0e1f</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;The GATT_WRITE issue was because Android_8.0 app doesn&amp;#39;t refresh the service discovery when switching to DFU mode and this can be resolved by clicking on refresh item. &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/140117?ContentTypeID=1</link><pubDate>Sat, 14 Jul 2018 15:30:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:92b29e14-a005-4c64-a333-8a054228c59b</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;After digging into some I see the bootloader returns INVALID_OBJECT at below code in dfu_req_handling.c&lt;br /&gt;&lt;br /&gt;dfu_handle_prevalidate()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; :&lt;br /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;:&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // calculate the signature&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_LOG_INFO(&amp;quot;Verify signature&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; err_code = nrf_crypto_ecdsa_verify_hash(sig_info_p256, &amp;amp;crypto_key_pk, &amp;amp;init_packet_hash, &amp;amp;crypto_sig);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (err_code != NRF_SUCCESS)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NRF_LOG_ERROR(&amp;quot;Signature failed&amp;quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; nrf_gpio_pin_clear(BSP_LED_3);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return NRF_DFU_RES_CODE_INVALID_OBJECT;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;Why and what am I doing wrong?&lt;br /&gt;&lt;br /&gt;attached(my_bin.rar) is my generated binaries, could you try with this in your setup and let me know please.&lt;br /&gt;&lt;br /&gt;Also, sdk_config.h file of yours is different from SDK 14.2 and I can&amp;#39;t build bootloader with your config file. What bootloader are you using?&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Could you help me with this please as I&amp;#39;m stuck for months in this issue and this is real thing that needs to be re-solved as it can help many other who haven&amp;#39;t tried this configuration of DFU.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/my_5F00_bin.rar"&gt;devzone.nordicsemi.com/.../my_5F00_bin.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139547?ContentTypeID=1</link><pubDate>Tue, 10 Jul 2018 10:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e873bb6-3235-4046-8a70-c19e1538db2b</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Appreciate your response to my previous digest.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139332?ContentTypeID=1</link><pubDate>Sat, 07 Jul 2018 15:08:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:52c0289a-f688-442b-8bc4-c32b74545b95</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;I tried your application and dfu package in two different version of Android phones as below&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Case 1(Moto X4 with Android 8.0, nrfconnect version = 4.19.2):&lt;/strong&gt; &lt;br /&gt;I get the same issue of GATT WRITE NOT PERMIT error. Further debugging I can see the application custom services listed in dfu mode which should not be the case &lt;br /&gt;as custom services are never known in dfu mode. I suspect the phone does not discover the services afresh in dfu mode instead uses the cached stuff got from application. Using the application handle in dfu mode makes&lt;br /&gt;the device cry and sending GATT WRITE NOT PERMIT error. I did tried with different BD address and I can see the same symptoms.&lt;br /&gt;I have enabled NRF_SDH_BLE_SERVICE_CHANGED in bootloader config file but still does not help. I believe you should do some workaround in nrfconnect for Android 8.0 or I also suspect nrfconnect &lt;strong&gt;4.19.2&lt;/strong&gt; version as I remember this not happening in moto X4 before I updated to this version.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Case 2(Nexus 5 with Android 6.0.1 with your files, nrfconnect version = 4.19.0):&lt;/strong&gt; &lt;br /&gt;I don&amp;#39;t see GATT WRITE NOT PERMIT error and dfu works without any issues and completes and device boots up correctly - Hurray!!!. And I don&amp;#39;t see the application custom services&lt;br /&gt;listed in dfu mode either which means the phone discovers the service afresh..&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Case 3(Nexus 5 with Android 6.0.1 with my setup, nrfconnect version = 4.19.0):&lt;/strong&gt;&lt;br /&gt;Tried the same stuff with my setup but here I see different issue&lt;br /&gt;&lt;br /&gt;V&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.612&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50&lt;br /&gt;D&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.612&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)&lt;br /&gt;I&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.697&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04&lt;br /&gt;I&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.807&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-05&lt;br /&gt;E&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.807&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] Remote DFU error: INVALID OBJECT&lt;br /&gt;V&amp;nbsp;&amp;nbsp; &amp;nbsp;01:19:26.807&amp;nbsp;&amp;nbsp; &amp;nbsp;[DFU] Disconnecting...&lt;br /&gt;&lt;br /&gt;Command I use to generate dfu pkg is&lt;br /&gt;&lt;br /&gt;&amp;quot;nrfutil pkg generate --hw-version 52 --sd-req 0x9d --application-version 3 --application C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\nrf52832_xxaa.hex&amp;nbsp; --key-file C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\private.key C:\Data\Project\Device\repository\device\nordic\gcc\power_strip\_build\app_dfu_package.zip&amp;quot;&lt;br /&gt;&lt;br /&gt;I&amp;#39;m using s132_nrf52_5.0.0_softdevice.hex so 0x9d is correct, What am I missing? This command works fine without bonding.&lt;/p&gt;
&lt;p&gt;Can you use the makefile command to generate the dfu pkg and let me know if it that works please. &lt;/p&gt;
&lt;p&gt;Also, I observed with your files the device does not send disconnect packet to phone on entering bootloader but phone waits for time out. This is not the case on SDK 14.2 as it sends disconnect packet to phone before resetting the device. Is your bootloader something different from what I use?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Regards&lt;br /&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139205?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 09:05:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14602606-1480-4f02-bb72-197889b13945</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I didn&amp;#39;t change anything but the NRF_DFU_BLE_REQUIRES_BONDS to 1 in sdk_config.h, and in the rest of the Bootloader project, I only changed the address to match the C0:... address.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cb8b219e17cc4cd0af02bb1ba2a5a2b3/sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Can you also try to program the kit with the attached .hex file (it is included the softdevice and bootloader, your application and bootloader settings file). Then try to perform the DFU with the attached DFU packet, custom_app2.zip.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cb8b219e17cc4cd0af02bb1ba2a5a2b3/fullfile.hex"&gt;devzone.nordicsemi.com/.../fullfile.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-cb8b219e17cc4cd0af02bb1ba2a5a2b3/custom_5F00_app2.zip"&gt;devzone.nordicsemi.com/.../custom_5F00_app2.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Remember to run your prog_uicr.bat script before programming the fullfile.hex.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Fullfile.hex is the file based on your application, the bootloader generated with bonding required, and the changed address (C0:C0:C0:C0:C0:C0)&lt;/p&gt;
&lt;p&gt;I just want to check whether there might be something wrong with the android app, or in some project settings in one of the projects.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please also delete bonding information from the phone before connecting in nRF Connect. The&amp;nbsp; passkey is still the same as it was in your application.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Let me know if it works.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139171?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 03:18:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ec23d47f-a9f9-4371-8366-233949f76de3</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Did you set the STATIC_RANDOM_FLAG in bootloader mode? I have one more suspicion that phone doesn&amp;#39;t not re discover the services in bootloader mode since the BD address are same and I believe bootloader has different gatt database making the handles to mismatch.&lt;/p&gt;
&lt;p&gt;I did enable the service change request in bootloader mode which should make phone to re discover. Anyway sniffer should give me all details. Let me search for sniffer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139169?ContentTypeID=1</link><pubDate>Fri, 06 Jul 2018 01:34:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b316472-73ff-43f5-b43b-620a51e1e422</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;I see the device is connected to Android phone in bootloader mode( Led 2 and 3 are ON). I suspect Android_8.0 phone is not encrypting the link when connecting to device in bootloader mode( will confirm with sniffer). When I try to enable or disable dfu service indication I see GAtt write error&amp;nbsp; and trying to read char configuration of dfu service gives &amp;quot;&amp;quot;expected 16bit but got 128&amp;nbsp; bit&amp;quot; error message. Do I need to change the bootloader device name &amp;quot;DfuTarg&amp;quot; to match with application device name? Does having different name makes phone to think different device in bootloader mode even though BD address is same?&lt;/p&gt;
&lt;p&gt;Could you share your bootloader sdk_config.h file please?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/139049?ContentTypeID=1</link><pubDate>Thu, 05 Jul 2018 06:50:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573b3e77-0c23-4480-b5ed-d73b032b529c</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;It looks like you are not&amp;nbsp;bonded. Are you sure that you are?&lt;/p&gt;
&lt;p&gt;Could it be that there are other devices in the same area advertising with the same address (C0:C0:C0:C0:C0:C0)?&lt;/p&gt;
&lt;p&gt;Try to change the address to something else, something random that no other device in the area is using. Remember to change to that device in the bootloader as well.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When you get the GATT WRITE NOT PERMIT, what LEDs on the DK is on? (LED1 and LED3) or (LED2 and LED3)?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If it is LED1 and LED3, this suggests that you are not connected to the correct device, because it should change to LED2 and LED3 when it is connected.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I just ran the DFU process with your application and with the modified bootloader where the address is changed in nRF Connect for iOS, and it works.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138996?ContentTypeID=1</link><pubDate>Wed, 04 Jul 2018 13:56:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3492d5b3-6e75-47ee-86ef-a41c6410ec7f</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/ble_5F00_dfu.rar"&gt;devzone.nordicsemi.com/.../ble_5F00_dfu.rar&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I did changes as per your suggestion but still I see GATT WRITE ERROR.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.817&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] Enabling indications for 8ec90004-f315-4f60-9fb8-838830daea50&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.817&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] gatt.setCharacteristicNotification(8ec90004-f315-4f60-9fb8-838830daea50, true)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.819&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.891&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] Error (0x03): GATT WRITE NOT PERMIT&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;V&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.891&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] Disconnecting...&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.913&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] gatt.disconnect()&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;I&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.913&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] Disconnected&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;D&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 06:03:45.913&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [DFU] gatt.close()&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;My steps(used pca10040_debug of BL):&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;After building app, bootloader I use &amp;quot;flash_sd_bl_app&amp;quot; command from makefile to flash a fresh chip i.e. SD + BL + APP at one go.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I change the APP_VERSION to 2, re-build app and generate DFU package using &amp;quot;generate_dfu_pkg&amp;quot; command from makefile.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I connect nrfconnect from Android phone to device, pair, click on DFU icon and choose the generted dfu package (from above). I see GATT WRITE ERROR as above(check attached dfu_bond.docx file for more info).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you let me the detailed steps using Android phone if you succeed in getting DFU working.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;m wondering if I&amp;#39;m doing something stupid.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138801?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 14:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e216647-80e1-4bab-bf9c-cf9ca3fc6d69</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you changed the address in the bootloader like you did in the application in file ble_app.c on line 545-548?&lt;/p&gt;
&lt;p&gt;If you have, can you send the bootloader project as well, so I can replicate the error?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;I tried to change the address like you did in the bootloader project (hard coded), and now the DFU worked. Not an elegant fix, but you can do this for testing. In the file nrf_ble_dfu.c in the bootloader_secure_ble project, change the gap_params_init() function to the following:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static uint32_t gap_params_init(void)
{
    uint32_t                err_code;
    ble_gap_conn_params_t   gap_conn_params = {0};
    ble_gap_conn_sec_mode_t sec_mode;
    uint8_t const *         device_name;
    uint32_t                name_len;

    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);

#if !defined(NRF_DFU_BLE_REQUIRES_BONDS) || (NRF_DFU_BLE_REQUIRES_BONDS == 0)

    err_code = gap_address_change();
    VERIFY_SUCCESS(err_code);

    if ((m_flags &amp;amp; DFU_BLE_FLAG_USE_ADV_NAME) != 0)
    {
        NRF_LOG_DEBUG(&amp;quot;Setting adv name: %s, length: %d&amp;quot;, (uint32_t)m_adv_name.name, m_adv_name.len);
        device_name = m_adv_name.name;
        name_len = m_adv_name.len;
    }
    else
#endif
    {
        NRF_LOG_DEBUG(&amp;quot;Regular adv name&amp;quot;);
        device_name = (uint8_t const *)DEVICE_NAME;
        name_len = strlen(DEVICE_NAME);
    }
    ble_gap_addr_t addr;
    sd_ble_gap_addr_get(&amp;amp;addr);
    for (int i=0; i&amp;lt;6; i++)
    {
        addr.addr[i] = 0xC0;
    }
    err_code = sd_ble_gap_addr_set(&amp;amp;addr);
    VERIFY_SUCCESS(err_code);

    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode, device_name, name_len);
    VERIFY_SUCCESS(err_code);

    gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
    gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
    gap_conn_params.slave_latency     = SLAVE_LATENCY;
    gap_conn_params.conn_sup_timeout  = CONN_SUP_TIMEOUT;

    err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);
    return err_code;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If that works, read out the address from the register, as you do in the app that you sent me.&lt;/p&gt;
&lt;p&gt;The problem for me was that the bootloader didn&amp;#39;t use the custom address, and started advertising as DfuTarg with a random address, so the kit that performed the DFU with nRF Connect couldn&amp;#39;t find the bootloader board (because it doesn&amp;#39;t expect it to change address if bonding is required).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138629?ContentTypeID=1</link><pubDate>Tue, 03 Jul 2018 01:27:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:effacb25-f4dc-4ff7-a503-812b1815f844</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;All I did in bootloader and app is changed the BD address to static random instead of default one. If bootloader address is default i can&amp;#39;t dfu because application is bonded with static random address.&lt;/p&gt;
&lt;p&gt;Mean time will try with default button less app as suggested.&lt;/p&gt;
&lt;p&gt;I will wait for your inputs.&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138518?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2018 13:06:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30005d4f-f715-4cde-8ecc-8c70692312ac</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;I will not have time to look at your application today. We are a bit short staffed these days. What you can do in the meantime is to start with a standard case of buttonless_dfu with bonding, as I described in a previous post, and try to change one thing at the time, and see where it fails. You have a better overview than me what changes you have done. I suspect that there are some issues in the way that the address is changed. Maybe the&amp;nbsp;board performing the DFU&amp;nbsp;doesn&amp;#39;t look for the correct address? What happens if you don&amp;#39;t change the address?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138325?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 15:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23dfe275-90e7-461c-b622-7f0e9d988e7d</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Attached is the APP. U need to run the batch file(part of .rar) to burn UICR before flashing program.&lt;/p&gt;
&lt;p&gt;Expecting your reply.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/power_5F00_strip.rar"&gt;devzone.nordicsemi.com/.../power_5F00_strip.rar&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138249?ContentTypeID=1</link><pubDate>Fri, 29 Jun 2018 10:38:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40df4ebc-a1a8-4ad0-94b6-2efd60a6892b</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can send me a PM.&lt;/p&gt;
&lt;p&gt;I suspect that there is something wrong in the setup of the Buttonless_DFU service (After you changed the application-version to 1 higher than the currently running application).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138177?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 15:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45fc8945-1a88-4c4a-ba4d-3aed30167625</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The application has IP in it but anyway I will try to remove the IP part and I can share it if you make this thread private please.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In bootloader I have changed to take the static random address and I will share this part as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138158?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 14:13:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c5ef461-cc9c-4196-a18f-8c0f291af905</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;But I don&amp;#39;t have your application. Can you please upload the full project, then I may test it. I assume that you haven&amp;#39;t changed anything in the bootloader? So I can combine the sdk_config for the bootloader with the bootloader project in the SDK.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But please upload the application that you have modified.&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU with bond not working</title><link>https://devzone.nordicsemi.com/thread/138127?ContentTypeID=1</link><pubDate>Thu, 28 Jun 2018 12:58:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0857877-4d20-4bef-b07e-d2c8fa1ad7a2</guid><dc:creator>ssn</dc:creator><description>&lt;p&gt;Hi Edvin,&lt;/p&gt;
&lt;p&gt;Please see the attached zip files which contains sdk_config.h/makefile for bootloader and application.&lt;/p&gt;
&lt;p&gt;Also, I think you have tried with default buttonless_dfu app. Could you try with static random address with MITM enabled please. I given these details in first thread.&lt;/p&gt;
&lt;p&gt;It would be great if you follow the steps I&amp;#39;m using in app makefile for flashing SD,BL,APP.&lt;/p&gt;
&lt;p&gt;Not sure if I&amp;#39;m missing something.&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;
&lt;p&gt;Suresh&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>