<?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 upgrade failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91190/dfu-upgrade-failed</link><description>Hi, 
 Customers have reported the problem of dfu upgrade failure, and we also use the same type of mobile phone (iPhone 11 &amp;amp; iPhone XR) for testing. It is found that there is indeed a problem of upgrade failure, but this failure is random and does not</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 24 Aug 2022 07:19:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91190/dfu-upgrade-failed" /><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382997?ContentTypeID=1</link><pubDate>Wed, 24 Aug 2022 07:19:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:259fa115-07be-42c5-a546-67199fcda94e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;I see, that should be fine. Since the Advertising Interval here recommends using the advertising interval of 20 ms for 30 seconds before moving to either of the longer advertising intervals. Many of our example projects have different advertising intervals. One FAST and one SLOW, and with different advertising durations for these. Reference below:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define APP_ADV_FAST_INTERVAL          40                                     /**&amp;lt; The advertising interval (in units of 0.625 ms). The default value corresponds to 25 ms. */
#define APP_ADV_SLOW_INTERVAL          3200                                   /**&amp;lt; Slow advertising interval (in units of 0.625 ms). The default value corresponds to 2 seconds. */

#define APP_ADV_FAST_DURATION          3000                                   /**&amp;lt; The advertising duration of fast advertising in units of 10 milliseconds. */
#define APP_ADV_SLOW_DURATION          18000                                  /**&amp;lt; The advertising duration of slow advertising in units of 10 milliseconds. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;NRF_BLE_GATT_MTU_EXCHANGE_INITIATION_ENABLED should not affect the DFU as far as I know.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382914?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 12:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81629853-0e8d-4c0c-82d3-4023457cead5</guid><dc:creator>Mikey</dc:creator><description>&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/pastedimage1661256213768v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;According to the design parameters of ios, we choose 546.25ms, so 874*0.265 = 546.25ms. (I hope I am not wrong).&lt;/p&gt;
&lt;p&gt;Does the parameter &amp;quot;NRF_BLE_GATT_MTU_EXCHANGE_INITIATION_ENABLED&amp;quot; affect the upgrade?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382889?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 10:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bd01ed53-88ea-43a9-ab95-8f9d168fbc5a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Okay, your advertising parameters look good, just the APP_ADV_INTERVAL being set to 874 seems a little off, although it shouldn&amp;#39;t cause any issues. Any specific reason it is set to 874?&lt;/p&gt;
&lt;p&gt;If it&amp;#39;s not too hard to reproduce, it would be great if we could confirm whether this was a flash timeout or not. You can place a breakpoint or blink a LED in&amp;nbsp;&lt;span&gt;&amp;nbsp;bootloader-&amp;gt; nrf_dfu_scvi_handler.c-&amp;gt;&amp;nbsp;&lt;strong&gt;nrf_dfu_set_adv_name_on_sys_evt&lt;/strong&gt;-&amp;gt;NRF_EVT_FLASH_OPERATION_ERROR for example to verify this.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382776?ContentTypeID=1</link><pubDate>Tue, 23 Aug 2022 00:45:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29dfc3c0-a2f0-4d11-ab79-3e334bebbf37</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;My product looks more like this.&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/pastedimage1661215487586v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382746?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 15:20:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8cd25e29-3a7b-465b-867d-299ab3d0432b</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This is some current configuration and I don&amp;#39;t know how to analyze it.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define APP_ADV_INTERVAL                874                                 

#define APP_ADV_DURATION                0//18000                            

#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(30, UNIT_1_25_MS)     
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(75, UNIT_1_25_MS)     
#define SLAVE_LATENCY                   0                                   
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS)     

#define FIRST_CONN_PARAMS_UPDATE_DELAY  APP_TIMER_TICKS(5000)     &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The broadcast channel has not been modified, and the data channel is currently set to BLE_GAP_PHY_AUTO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: dfu upgrade failed</title><link>https://devzone.nordicsemi.com/thread/382698?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 13:18:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdc7cb4-b80c-4cf4-b18e-ea7c7f495866</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Is this reproducible with the buttonless_DFU example project in SDK 17.1.0 or has the customer made any changes to it to trig these errors?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The error you&amp;#39;re seeing indicates that the bootloader failed to store the new advertisement name to flash, possibly due to a flash timeout.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;A flash timeout means that the SoftDevicewas&amp;nbsp;unable&amp;nbsp; to schedule a flash operation which was successfully requested by the application/bootloader. This should not happen unless there is a lot of BLE activity in parallel with the flash writes.&amp;nbsp;Please have a look at table 1 in the&amp;nbsp;&lt;/span&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sds_s140/SDS/s1xx/flash_mem_api/flash_mem_api.html"&gt;Flash memory API&lt;/a&gt;&lt;span&gt;&amp;nbsp;chapter and see if your application meets any of the criteria for low to medium probability of success.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>