<?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 without peer manager</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90663/buttonless-dfu-without-peer-manager</link><description>Hello all, 
 I am merging the buttonless DFU example with my application for nRF52805. 
 Everything is well, but I am running out of flash. I am therefore trying to reduce NRF_DFU_APP_DATA_AREA_SIZE from 8192 to 4096 in my bootloader, which works. I can</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 09 Aug 2022 18:04:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90663/buttonless-dfu-without-peer-manager" /><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380883?ContentTypeID=1</link><pubDate>Tue, 09 Aug 2022 18:04:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4050c94-ecf1-458b-87fe-d056f032c723</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I would&amp;#39;ve expected to run into issues with mobile more than the nrf connect for desktop application. As far as I know I haven&amp;#39;t done anything else other than disable the peer manager.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will add the full projects later! For now I can move ahead with the mobile app as I am a bit time constraint.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I am using the NRF5 SDK 17.1.0.&lt;/p&gt;
&lt;p&gt;Thanks a lot!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380527?ContentTypeID=1</link><pubDate>Mon, 08 Aug 2022 08:27:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5df4e22-4e62-495a-98ad-a4b77f5ac88d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is interesting that DFU succeeds from a mobile app bot not from nRF Connect for Desktop. You get a GATT timeout on nRF Connect which then leads to disconnect, but I cannot see why, and that is not expected. Is the only change that you removed the peer manager? I ask because this should have no relevance for DFU at all, as long as you don&amp;#39;t use bonding anyway.&lt;/p&gt;
&lt;p&gt;I would be interesting to know what happens on the nRF side. If you have another nRF DK lying around&amp;nbsp;(with a device with more flash), it could perhaps be interesting to test on that to get bootloader logging and see if that sheds some light on things.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t make progress, can you upload your bootloader and application project (or some minimal failing example based on it) here, along with instructions on how to reproduce so that I can test on my end? Note that it should be complete projects with project files etc (so not just code and sdk_config.h). that I can drop in an unmodified SDK and run out of the box so that we are sure we are testing the same thing.&lt;/p&gt;
&lt;p&gt;Also, which SDK are you using (I see you linked to SDK 15.2 documentation, but I want to double check)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380334?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 10:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1679cf4e-0a3c-4c79-b753-aa10c39a6f61</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have been doing OTA firmware upgrades with nrf connect for Desktop all the time. I attached the log in the previous post already. But here again:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5466.2022_2D00_08_2D00_04T14_5F00_32_5F00_25.240Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../5466.2022_2D00_08_2D00_04T14_5F00_32_5F00_25.240Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Today I tried to use DFU with the mobile app, and this is working just fine!&lt;/p&gt;
&lt;p&gt;Luckily I don&amp;#39;t have to worry about flash size constraints anymore.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;However it is a bit of a hassle to send the package to my phone and use it that way. I would like to automate this process in a custom desktop app, so I am very keen to know why the nrf connect for desktop app keeps quitting on me. I tried re-opening the app as well as reconnecting the devkit to the computer, with no luck.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380294?ContentTypeID=1</link><pubDate>Fri, 05 Aug 2022 07:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:27aeb210-f1de-43ec-93db-9ca921806ff2</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I do not spot anything that looks incorrect here. Can you try to make sure you delete the bond on the phone you are testing with (if already existing) and toggle Bluetooth off and on again to clear the cache of BT services on the peers? Does that help? If not, what do you see if you try to do the DFU update from nRF Connect for Desktop? And if it fails, can you upload the full log from nRF Connect for Desktop as well?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380198?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 15:23:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a55b3ee-dee6-4793-b51f-c03d4a21fbb5</guid><dc:creator>Sophisti</dc:creator><description>&lt;p&gt;Hi Einar,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;The debug&amp;nbsp;version cannot be used in combination with the buttonless DFU service as described here:&lt;br /&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_buttonless_dfu.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.2.0%2Fble_sdk_app_buttonless_dfu.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I added a log of my nRF connect for desktop activity.&lt;br /&gt;Here I first connect to the device after programming the bootloader. Device name is changed from dfutarg to &amp;quot;Qing DFU&amp;quot;&lt;br /&gt;Then the application named &amp;quot;bma_dfu_no_pm_package.zip&amp;quot; is uploaded. This all goes well.&lt;br /&gt;The device resets and appears as expected as &amp;quot;Qing dice&amp;quot;. I can connect to it and open the DFU menu again.&lt;br /&gt;When trying to upload the same package again it is stuck at initializing for some time, and disconnects after getting a Gatt timeout.&lt;/p&gt;
&lt;p&gt;I tried removing logging, but this does not decrease the package size enough. I don&amp;#39;t know what other components to exclude.&lt;/p&gt;
&lt;p&gt;I also included the main and sdk_config files of the application and bootloader.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2022_2D00_08_2D00_04T14_5F00_32_5F00_25.240Z_2D00_log.txt"&gt;devzone.nordicsemi.com/.../2022_2D00_08_2D00_04T14_5F00_32_5F00_25.240Z_2D00_log.txt&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0827.sdk_5F00_config_5F00_bootloader.h"&gt;devzone.nordicsemi.com/.../0827.sdk_5F00_config_5F00_bootloader.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4150.sdk_5F00_config_5F00_application.h"&gt;devzone.nordicsemi.com/.../4150.sdk_5F00_config_5F00_application.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main_5F00_bootloader.c"&gt;devzone.nordicsemi.com/.../main_5F00_bootloader.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/main_5F00_application.c"&gt;devzone.nordicsemi.com/.../main_5F00_application.c&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bma_5F00_dfu_5F00_no_5F00_pm.hex"&gt;devzone.nordicsemi.com/.../bma_5F00_dfu_5F00_no_5F00_pm.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/bma_5F00_dfu_5F00_no_5F00_pm_5F00_package.zip"&gt;devzone.nordicsemi.com/.../bma_5F00_dfu_5F00_no_5F00_pm_5F00_package.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Buttonless DFU without peer manager</title><link>https://devzone.nordicsemi.com/thread/380133?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 12:59:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac68e372-4618-4b0b-8f44-a45794a6210d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;There is no&amp;nbsp;requirement on bonding or the peer manager for doing buttonless DFU, but it could be that some other issue was introduces while you made this change? There is also a subtle difference, that when not using bonding in the bootloader, the nRF will increment the bluetooth address by 1 when in DFU mode in oder to make it appear like a different device for the phone and make it do service discovery. So the phone app needs to look for the new address when trying to connect to the nRF after it has entered DFU mode. This is handled by default by our example applications (nRF Connect and nRFToolbox), and so this should not be the problem either as you write that you use nRF Connect.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t make any progress, perhaps you can upload the full log from nRF Connect? Also, if you are able to fit the debug bootloader with RTT logging that could be interesting as well (that might be difficult though as it is larger and your device is flash constrained).&lt;/p&gt;
&lt;p&gt;Regarding other ways to reduce size, you should make sure to configure your compiler to optimize for size, and remove any unused components (like the peer manager, but also if you have others).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>