<?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>DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68636/dfu-update-for-nrf51422-multirole-lesc</link><description>Hi, 
 I am using sdk11 and nrf51422 device with s130 softdevice for ble_multilink_lesc example code. How do I add DFU service in the existing code? I have added DFU service for other peripheral examples. But here when I follow the same procedure, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Dec 2020 16:39:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68636/dfu-update-for-nrf51422-multirole-lesc" /><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/283179?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:39:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:451e9e59-5fc7-4bab-a233-eea6ff8787f6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;A sniffer trace will&amp;nbsp;possibly help determine why it fails.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/283165?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 16:01:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0dbaf7a-2547-4608-8dca-faf75e14b4dc</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;I have done the same thing. I have uncommented the &amp;#39;device_manager_init(erase_bonds)&amp;#39; function and there was no errors. But the DFU service is not working. If there is no error then why its not working properly?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/283161?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 15:49:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84045ec7-143a-4719-8f90-f067e7687ca6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I literally just commented in line 1496 in main.c in the project you uploaded:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;device_manager_init(erase_bonds);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that I did not test DFU functionality, only checked that no error is returned from&amp;nbsp;&lt;span&gt;dfu_app_dm_appl_instance_set().&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I see that you have added peer_manager to your project, I guess this is why you removed the device_manager initialization? It may create some issues if you use both. It looks like device manager is used in the DFU functions that you are using. Any chance you can migrate the project to SDK 12.3.0, where the DFU libraries are updated and device manger is removed?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282849?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 10:28:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:71e252dc-ecc8-426b-a2c9-59b8085eabcd</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Okay, Can you share your working code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282843?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 10:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:66bb68b3-5ecb-4663-9c1d-0976ad504aea</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I think you misunderstood my answer. You should not comment out the APP_ERROR_CHECK. The problem is caused by that you have commented out&amp;nbsp;&lt;span&gt;device_manager_init() in your code. I removed the comment on this function so it is called. This resolved the error in&amp;nbsp;dfu_app_dm_appl_instance_set().&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282786?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 05:02:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d64e373b-3d45-41d1-9148-cc3090dbc3d2</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;ll try to provide the sniffer trace. But can you tell me why the application shows error in the&amp;nbsp;&lt;span&gt;dfu_app_dm_appl_instance_set function. If that error is taken cared off then it will be easy to understand the working of the code. Can you try to clear the error from your side?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282523?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 16:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b060595-f936-45a2-b398-f99ff61a5033</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you provide a sniffer trace of communication on-air between the phone and the nRF device? You can use the &lt;a title="nRF Sniffer for Bluetooth LE" href="https://infocenter.nordicsemi.com/topic/ug_sniffer_ble/UG/sniffer_ble/intro.html?cp=9_4"&gt;nRF Sniffer for Bluetooth LE&lt;/a&gt; for that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282402?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 10:05:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc6f1bdd-baa5-478f-a594-2f68c2636203</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;As per your suggestion the application is running and I am able to connect to the device. But after connection I need to update the firmware using a zip file which contains the latest firmware for the device.&lt;/p&gt;
&lt;p&gt;I am able to select the zip file after clicking the &amp;#39;dfu&amp;#39; icon in the &amp;#39;nrf connect&amp;#39; mobile app. But it hangs in between.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282325?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 19:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32ebce01-832d-4b23-b5ef-9203d57455dd</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you explain in more details what is not working?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282225?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 10:11:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e879c27e-f69d-4f50-acc8-0677e2821214</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;DFU service is enabled but the service is not working.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282222?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 10:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:59b8bbf0-9149-4228-9bab-f4c893435c67</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;No, I did not test that. I only checked the error that you described and suggested a fix to resolve it. Are you able to see the device advertise? Can you connect? Do you see the DFU service?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282217?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 09:58:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58390b99-d03e-4612-8702-411e29fbf316</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the suggestion. But were you able to update the zip file after making the changes in your code?&lt;/p&gt;
&lt;p&gt;I did the same thing like you have suggested and the application was running but I couldn&amp;#39;t flash the new firmware through DFU.&lt;/p&gt;
&lt;p&gt;If you comment&amp;nbsp; the&amp;nbsp;&lt;span&gt;APP_ERROR_CHECK&amp;nbsp;you might be able to make it advertise and scan, but the DFU functionality will get effected and it may not work.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/282143?ContentTypeID=1</link><pubDate>Thu, 26 Nov 2020 15:45:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d4f3c7a-f7f8-4846-9b10-0acd03df25e4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;The error originates from the&amp;nbsp;APP_ERROR_CHECK in&amp;nbsp;dfu_app_dm_appl_instance_set in dfu_app_handler.c:191. I got a warning while compiling the application about&amp;nbsp;device_manager_init being defined but not called. When I commented in the calling of this function, I do not get any error when running your application.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/281803?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 12:53:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:21aa3f62-65d4-4862-9f47-f529eeb162a4</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;err_code-&amp;gt;0x008008 and line_num=0xBF&lt;/p&gt;
&lt;p&gt;This is my application project-&amp;gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Fresh_5F00_DFU_5F00_test.zip"&gt;devzone.nordicsemi.com/.../Fresh_5F00_DFU_5F00_test.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Go to-&amp;gt;\Fresh_DFU_test\examples\ble_central_and_peripheral\experimental\ble_app_multirole_lesc\pca10028\s130\arm5_no_packs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/281797?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 12:38:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19a11c37-2257-46ed-84b2-bed8a690a8b2</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;I believe that is the file you are currently in, not the file where the error occurred. What is the value of&amp;nbsp;err_code and&amp;nbsp;line_num in the&amp;nbsp;m_error_data struct?&lt;/p&gt;
&lt;p&gt;I do not have any examples of this available. If you can upload your application project, I can help you debug it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/281788?ContentTypeID=1</link><pubDate>Wed, 25 Nov 2020 12:16:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ba09f22b-392d-4c39-af9d-a546a2be465c</guid><dc:creator>Vimalnath</dc:creator><description>&lt;p&gt;Yes I have tried this. Its getting stopped in the while loop and I have put a watch on the&amp;nbsp;m_error_data structure which shows the error files as-&amp;gt;&amp;nbsp;\\nrf51422_xxaa_s130\../../../../../../../components/libraries/util/app_error.c\app_error_save_and_stop\m_error_data.p_file_name.&lt;/p&gt;
&lt;p&gt;Can you share an example code of multirole(central and peripheral) with dfu enabled?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU update for nrf51422 multirole lesc</title><link>https://devzone.nordicsemi.com/thread/281318?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 13:21:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2987a52-6913-414b-a410-2eab70935381</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If it is not advertising, there is most likely an error reported, causing the device to reset. Have you tried following &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/10729/my-device-is-freezing-and-restarting"&gt;this debug-procedure&lt;/a&gt; to read out the error code, or see where the application crashes?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>