<?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>nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108672/nrf-connect-app-android-dfu-does-not-perform-validation-reset</link><description>Greetings, 
 We have developed a custom application based on the nRF Connect SDK (v2.1.0) which utilizes the MCUMgr for DFU (OTA) and have been performing several OTA FW updates using this feature for a while now (months) without any issues using the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 07 Mar 2024 15:19:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108672/nrf-connect-app-android-dfu-does-not-perform-validation-reset" /><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/472776?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 15:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4a752a0-7964-4c95-9cab-751ca531a541</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;After a lot of testing and validating the cause of this issue it was found that the problem was including the Tracing configuration options listed in my previous comment.&lt;/p&gt;
&lt;p&gt;More specifically:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SEGGER_SYSTEMVIEW=y
CONFIG_TRACING=y
CONFIG_TRACING_THREAD_STACK_SIZE=8192
CONFIG_TRACING_BUFFER_SIZE=8192
CONFIG_RAM_TRACING_BUFFER_SIZE=8192
CONFIG_TRACING_CMD_BUFFER_SIZE=64&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;After removing these the DFU process (I always use the &amp;#39;Confirm only&amp;#39; option) returned to its expected behavior and everything worked as it did previously.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you very much for your support. This ticket can now be closed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/472761?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 14:48:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e3018ff-ce7a-400d-9e3d-496ff114c313</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Stavros,&lt;/p&gt;
&lt;p&gt;Apologies for the long response time, I have been out of office since my last inquiry&lt;br /&gt;&lt;br /&gt;Could you verify what Nowakowski (who&amp;#39;s one of the devs behind the apps) asks and we&amp;#39;ll look further into it if it&amp;#39;s something else causing hte issue?&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/472673?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2024 11:38:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4ad1095-81e3-4225-a7e3-9586936baf13</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Are you sure that you&amp;#39;re using CONFIRM ONLY option in nRF Connect for Android?&lt;/p&gt;
&lt;p&gt;Recent version added a new option called &amp;quot;Upload only (no revert)&amp;quot;, which can be used when the McuBoot is in &amp;quot;DirectXIP without revert&amp;quot; mode. This mode indeed only uploads without doing confirmation and reset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/471304?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 13:02:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cc3bf31-ba9c-4381-8c7f-1a06b5fd4712</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I can confirm that I have not made any changes to the OTA updates anything even remotely related to the MCUMgr &amp;amp; SMP&amp;nbsp; well as the BLE stack and their configuration option has not been modified in the slightest ( the changes I made were for some details in the driver of an IMU sensor we use ).&lt;/p&gt;
&lt;p&gt;The process I use, after performing a change to the FW I need to test, is the following:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Perform &lt;strong&gt;Pristine Build&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Rename &amp;amp; Copy the dfu_application.zip to my mobile phone ( I am giving it a very short name just to be able to distinguish the different images on my phone)&lt;/li&gt;
&lt;li&gt;Connect to the device using the nRF Connect application (Android)&lt;/li&gt;
&lt;li&gt;Press the DFU button in the upper right corner and select the image with the &amp;#39;Confirm only&amp;#39; option selected&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I am aware that if the FW image is already present on the device it will skip the transfer step and proceed with the Validation &amp;amp; Reset, this is not the behavior I am referring to. I am always aware of this so this is why I always perform a pristine build for each of the FW images I use. During testing, I have three or four different images(all built with pristine builds, which means different hashes) that I rotate for testing the update so that the new image is always uploaded and the complete DFU process is performed( not just the Validation &amp;amp; Reset).&lt;/p&gt;
&lt;p&gt;I have been performing updates like these for months now, just last Friday I was updating some devices like this with no issues and wanted to test a new version so I&amp;nbsp;tried updating them a second time and it started&amp;nbsp;skipping the Validation &amp;amp; Reset steps while the nRF Connect Device Manager always performs these steps correctly with no issues at all.&lt;/p&gt;
&lt;p&gt;The one thing I had enabled in these last few versions of the FW for which this issue started happening was I had some Tracing enabled. More specifically the following options:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_SEGGER_SYSTEMVIEW=y
CONFIG_TRACING=y
CONFIG_TRACING_THREAD_STACK_SIZE=8192
CONFIG_TRACING_BUFFER_SIZE=8192
CONFIG_RAM_TRACING_BUFFER_SIZE=8192
CONFIG_TRACING_CMD_BUFFER_SIZE=64&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Could this cause an issue with the FW update?&lt;/p&gt;
&lt;p&gt;I want to still emphasize that even though the issue was present with the typical update procedure I have used for months ( utilizing the nRF Connect app ) the nRF Connect Device Manager app always performed the updates correctly 100% of the time. I have reproduced this issue several times and have confirmed that for the same images, the first app skips the last and crucial steps (Validation &amp;amp; Reset) and the second app does not.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you very much for your support and immediate response and I look forward to hearing from you!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Stavros&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/471200?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2024 08:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ad690f6-ce6f-4cb6-8c01-fd658cdf3f22</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Two questions:&lt;/p&gt;
&lt;p&gt;The developers wants you to verify if you&amp;#39;ve made any changes to the firmware related to OTA updates in between you firmware updates was successful with confirm only and when it required you to perform it twice (one to&amp;nbsp;&lt;span style="text-decoration:underline;"&gt;&lt;/span&gt;upload the image and one time to validate and reset device)?&lt;/p&gt;
&lt;p&gt;Could you also describe the complete procedure for building your FW, flashing, building new image for update up until you perform the update?&lt;br /&gt;What I want to verify with this is to double check if you&amp;#39;ve forgotten some steps that you used to do previously (for not making changes in the code or in firmware revision numbering such that you&amp;#39;re now attempting to update your firmware with the exact same firmware that is currently running on the application)&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/471098?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 15:55:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a41ad2-8004-41fe-84fa-4e9912a539e8</guid><dc:creator>clockis</dc:creator><description>&lt;p&gt;Hi Andreas,&lt;/p&gt;
&lt;p&gt;Great! Thank you for the immediate feedback!&lt;/p&gt;
&lt;p&gt;It would also be useful if you have any other hints as to what differences the nRF Connect app &amp;amp; nRF Device Manager app have, as well as any way this could be FW related ( although that would be very strange as the MCUMgr&amp;nbsp;setup&amp;nbsp;as well as the BLE stack settings were not changed at all ).&lt;/p&gt;
&lt;p&gt;Thanks again!&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Stavros&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF Connect app (Android) DFU does not perform Validation/Reset</title><link>https://devzone.nordicsemi.com/thread/471055?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2024 14:17:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c653db8d-59ad-4ccb-b337-76d6a3474b2f</guid><dc:creator>AHaug</dc:creator><description>&lt;p&gt;Hi Stavros,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will check in with the developers and ask if there has been any changes in the Android app. I know that the iOS app has been updated in between NCS 2.1.0 and 2.5.2, so you might be on to something&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Andreas&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>