<?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>Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96583/mesh-dfu-not-working-after-1st-successful-update-integrating-dfu-process-into-the-application</link><description>Hello I need to integrate MESH DFU Example to Light_switch Example, I took part of the code from DFU example and added his to light_switch example main.c. The first time the update is successful. I increase the value --application-version and generate</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Feb 2023 11:41:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96583/mesh-dfu-not-working-after-1st-successful-update-integrating-dfu-process-into-the-application" /><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/411632?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 11:41:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f3e8747-79b8-4377-8483-6dbec99620cf</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;I didn&amp;#39;t change anything in cmake&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/4456.CMakeLists.txt"&gt;devzone.nordicsemi.com/.../4456.CMakeLists.txt&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410964?ContentTypeID=1</link><pubDate>Mon, 20 Feb 2023 17:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7034af2d-5017-41bd-ac90-beb6e0363b92</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;I think I have isolated my issue, my light switch and dfu cmake files are different, I&amp;#39;m not entirely sure how to merge them, would I be able to have a look at your cmake file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410713?ContentTypeID=1</link><pubDate>Fri, 17 Feb 2023 17:52:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaa1f07e-2a3b-408b-a752-25b1cad4647a</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;m_evt_handler.evt_cb = mesh_evt_handler;//DFU&lt;br /&gt; nrf_mesh_evt_handler_add(&amp;amp;m_evt_handler);//DFU&lt;br /&gt;added this to the end&amp;nbsp;&lt;span&gt;mesh_init(void)&lt;br /&gt;&lt;br /&gt;the rest of the functions you can compare they are the same&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410453?ContentTypeID=1</link><pubDate>Thu, 16 Feb 2023 16:59:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:189611e9-08ce-4616-aa1d-aad4a9ddf632</guid><dc:creator>Shahin97</dc:creator><description>&lt;p&gt;You&amp;#39;ve imported the DFU into the&amp;nbsp;&lt;span&gt;Light_switch&amp;nbsp;Example&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Did you do any changes to:&lt;/p&gt;
&lt;p&gt;mesh_init(void)&lt;/p&gt;
&lt;p&gt;initialize(void)&lt;/p&gt;
&lt;p&gt;start(void)&lt;br /&gt;&lt;br /&gt;or just copy the&amp;nbsp;&lt;a class="ui-tip filename" title="" href="https://devzone.nordicsemi.com/cfs-filesystemfile/__key/communityserver-discussions-components-files/4/part-of-code.txt?_=638117398811506452"&gt;part of code.txt&lt;/a&gt;&amp;nbsp;into the Light_switch Example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410160?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 17:16:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d4800f5-f18a-4bb9-9168-0caee625126a</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes, it only have the weak implementation of&amp;nbsp;nrf_mesh_dfu_init() from nrf_mesh_weak.c.&lt;br /&gt;&lt;br /&gt;I added &lt;br /&gt;&amp;lt;folder Name=&amp;quot;DFU&amp;quot;&amp;gt;&lt;br /&gt; &amp;lt;file file_name=&amp;quot;../../../mesh/dfu/src/nrf_mesh_dfu.c&amp;quot; /&amp;gt;&lt;br /&gt; &amp;lt;/folder&amp;gt;&lt;br /&gt;the file path to&amp;nbsp; .emProject&amp;nbsp;now everything is working. &lt;br /&gt;&lt;br /&gt;Thanks for the help. I hope in the future there will be Wizards app that will set everything up in one click.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410128?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 14:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf60dc3-2cbe-4ef2-81b0-36e238b39137</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, did you include nrf_mesh_dfu.c and nrf_mesh_dfu.h in your project? Or does it only have the weak implementation of&amp;nbsp;nrf_mesh_dfu_init() from nrf_mesh_weak.c?&lt;/p&gt;
&lt;p&gt;If you already included the nrf_mesh_dfu.c, try to debug (or add logging) to see where it returns 0x06. Is it on line 692? Or is it one of the other calls inside nrf_mesh_dfu_init() that returns 0x06? Try to compare it to the dfu example to see where it behaves differently.&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410101?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 13:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bf5410a-988b-41dc-866d-c6fd0961a9d7</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;&amp;nbsp;nrf_mesh.c,&amp;nbsp; 358, Status nrf_mesh_dfu_init() : 0x6&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410094?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 13:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:12fa4375-a5dd-4d59-836a-1cf4a263e3d2</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Ok, what does nrf_mesh_dfu_init() in nrf_mesh.c return, then? What is the value of the parameter &amp;quot;status&amp;quot; after this line:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676467752958v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR,&lt;br /&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410059?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 12:05:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:20f93921-9067-4bc9-91bc-fdfa338fb0cf</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;00&amp;gt; &amp;lt;t: 0&amp;gt;, main.c, 506, ----- BLE Mesh Light Switch Server Demo -----&lt;br /&gt;00&amp;gt; &amp;lt;t: 8231&amp;gt;, main.c, 475, ---------------Start mesh_stack_init. -----------------&lt;br /&gt;00&amp;gt; &amp;lt;t: 8775&amp;gt;, main.c, 453, Initializing and adding models&lt;br /&gt;00&amp;gt; &amp;lt;t: 8779&amp;gt;, main.c, 307, App OnOff Model Handle: 2&lt;br /&gt;00&amp;gt; &amp;lt;t: 8782&amp;gt;, main.c, 312, App DTT Model Handle: 3&lt;br /&gt;00&amp;gt; &amp;lt;t: 8786&amp;gt;, main.c, 318, App Scene Model Handle: 5&lt;br /&gt;00&amp;gt; &amp;lt;t: 8806&amp;gt;, main.c, 477, Status mesh_stack_init : 0x0000 &lt;br /&gt;00&amp;gt; &amp;lt;t: 8809&amp;gt;, main.c, 523, Initialization complete!&lt;br /&gt;00&amp;gt; &amp;lt;t: 13661&amp;gt;, mesh_app_utils.c, 66, Device UUID (raw): 2AD4C6C6D0CF446E876C33B6966911D2&lt;br /&gt;00&amp;gt; &amp;lt;t: 13665&amp;gt;, mesh_app_utils.c, 67, Device UUID : 2AD4C6C6-D0CF-446E-876C-33B6966911D2&lt;br /&gt;00&amp;gt; &amp;lt;t: 13684&amp;gt;, main.c, 557, &lt;br /&gt;00&amp;gt; -------------------------------------------------------------------------------&lt;br /&gt;00&amp;gt; Button/RTT 1) LED state will toggle and inform clients about the state change.&lt;br /&gt;00&amp;gt; Button/RTT 4) Clear all the states to reset the node.&lt;br /&gt;00&amp;gt; -------------------------------------------------------------------------------&lt;br /&gt;00&amp;gt; &amp;lt;t: 14256&amp;gt;, app_onoff.c, 154, msg: SET: 0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410040?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 10:39:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a655751-8c21-4e20-be1d-086cad9937a4</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;as shown in attached file &amp;quot;part of code.txt&amp;quot;&amp;nbsp;&lt;span&gt;mesh_evt_handler()&amp;nbsp;was completely added by me unchanged to the light_switch example.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/410032?ContentTypeID=1</link><pubDate>Wed, 15 Feb 2023 10:19:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9840a57b-4f9f-4bcd-a689-5db2d4326f8a</guid><dc:creator>Edvin</dc:creator><description>[quote user="Sergnrf"]this is what the memory looks like after the first successful update&lt;br /&gt;[/quote]
&lt;p&gt;That looks correct. Just to clarify, the green lines at the top is the flash used for network credentials and stuff like that. This is not erased between DFUs. The green chunk in the middle is the new application. This is where it is stored while transferring. This will be erased and re-written the next time you do a DFU. The bottom green chunk is the current application. It is probably the same as the middle green chunk, since it is copied from there. The blue and orange are the SoftDevice and MBR. The bluetooth stack. This is not updated in an application DFU (only if the image contains a SoftDevice update).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So my guess is that your new application is not set up to handle DFUs. I don&amp;#39;t know what your code looks like, but looking at the DFU example I would guess that you need all the events that says something with DFU in your mesh_evt_handler().&lt;/p&gt;
&lt;p&gt;Also, does nrf_mesh_dfu_init() get called inside nrf_mesh.c -&amp;gt;&amp;nbsp;nrf_mesh_init(). What does&amp;nbsp;nrf_mesh_dfu_init() return?&lt;/p&gt;
&lt;p&gt;&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: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/409963?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 22:10:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3f7f462-991d-4ff4-af74-38a4421d9789</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;when I run the update for the first time, I see the following message in RTT Viewer&lt;br /&gt;5881588&amp;gt;, nrf_mesh_dfu.c,&amp;nbsp; 418,&amp;nbsp; &amp;nbsp;New firmware!&lt;br /&gt;when I run the updates for the second time, there are no messages related to the update&lt;br /&gt;&lt;br /&gt;Сan you provide detailed instructions on how to combine your examples?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/409961?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 21:59:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a4555bf7-0a59-4358-b18a-43910ae9ff37</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;&lt;br /&gt;this is what the memory looks like after the first successful update&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1676411847702v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/409845?ContentTypeID=1</link><pubDate>Tue, 14 Feb 2023 12:27:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcdda89e-2484-4d1a-919a-6964ce9090fe</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="Sergnrf"]I have a guess that by combining the two examples the total size of the hex file exceeds the amount of available memory for the update.[/quote]
&lt;p&gt;That could be the case. Did you try checking the size of the old and the new application? (you can use nRF Connect for Desktop -&amp;gt; Programmer to see how much space the .hex file will take). Will they both fit in the flash at the same time in addition to the SoftDevice and Bootloader?)&lt;/p&gt;
&lt;p&gt;I am not sure whether the LEDs not responding is due to the image not being transferred, or if the LEDs are set up to do other things. They are controlled by the application in the DFU sample. Are they set up the same way in your light_switch application?&lt;/p&gt;
&lt;p&gt;You don&amp;#39;t strictly need the LEDs to determine whether the DFU is ongoing. You can monitor the DFU related events, and for example write something to the log when they occur. Do any of the DFU related events from the dfu example trigger in your light switch implementation?&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: Mesh DFU not working after 1st successful update. Integrating DFU process into the application.</title><link>https://devzone.nordicsemi.com/thread/409638?ContentTypeID=1</link><pubDate>Mon, 13 Feb 2023 14:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de37047d-86ba-4ed0-a181-f5e0043564fb</guid><dc:creator>Sergnrf</dc:creator><description>&lt;p&gt;I have a guess that by combining the two examples the total size of the hex file exceeds the amount of available memory for the update.&lt;br /&gt;Has anyone been able integrating dfu mesh process to&amp;nbsp;&lt;span&gt;light_switch example?&amp;nbsp;&amp;nbsp;so that it is successfully updated every time?&lt;/span&gt;&lt;/p&gt;
&lt;h1 class="name"&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>