<?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 lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62755/dfu-lockup-fixed-in-sdk-16-0</link><description>Hi Nordic 
 SDK15.2 based application and bootloader running on NRF52840 based UBlox module. 
 We have the following symptoms happening in the field: 
 - 2 channels of the watchdog are active with 120 seconds counters. We start a custom animation on an</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jun 2020 09:44:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62755/dfu-lockup-fixed-in-sdk-16-0" /><item><title>RE: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/257319?ContentTypeID=1</link><pubDate>Mon, 29 Jun 2020 09:44:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03e4247a-f9a2-42b6-ac07-50de579b8ed8</guid><dc:creator>Bart Cerneels</dc:creator><description>&lt;p&gt;We&amp;#39;ve found an issue in our application code. When an external SPI device was malfunctioning, probably keeping CLK low, nrfx_spim_xfer would hang in an infinite loop.&lt;/p&gt;
&lt;p&gt;Initial deployment of a workaround looks good. No lockups after ~100 DFUs.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So we&amp;#39;re&amp;nbsp;very likely not hit by the mentioned bug. Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255938?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 10:08:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4c4fbec-cced-4f2e-922d-cb13a805b729</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Sorry. I can&amp;#39;t do that. You probably need to port at least the bootloader. Be aware that porting from SDK15.2.0 to 16 (or 17 which was just released) shouldn&amp;#39;t be much job, as the softdevice API is more or less unchanged. The main features are support for new chipsets.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to port, you can diff the bootloader between 15.2.0 and 16.0.0 (/17.0.0) and pick out the differences (essensially backport the bootloader to support the softdevice from SDK15.2.0)&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: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255906?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 08:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05e5dd1f-46a2-452e-af0a-24332491ca81</guid><dc:creator>Bart Cerneels</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/62755/dfu-lockup-fixed-in-sdk-16-0/255905"]Ok, then that may be related to the bug fix. Hard to say without knowing why it didn&amp;#39;t reset, but it may sound like a bad state kind of situation. I wasn&amp;#39;t aware of this bug/bugfix. You can try to upgrade, and see if it continues to occur.&amp;nbsp;[/quote]
&lt;p&gt;Could I get a patch for SDK15.2 with jus this bugfix?&lt;br /&gt;It&amp;#39;s dropped as one big zip without commit history and I&amp;#39;ll likely make a mistake trying to figure it out.&lt;/p&gt;
&lt;p&gt;Doing a full SDK16 is not feasible for our stable version. We are planning it for a future version.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255905?ContentTypeID=1</link><pubDate>Fri, 19 Jun 2020 08:53:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1595dd-ddce-4e74-9050-7b04ddd7ab15</guid><dc:creator>Edvin</dc:creator><description>[quote user="Bart Cerneels"]This is happening only sporadically single digit percentage, more&amp;nbsp;with&amp;nbsp;android as DFU initiator even though it&amp;#39;s only 20% of the updates so far. But because of the size of our fleet it&amp;#39;s enough to hold the release.[/quote]
&lt;p&gt;&amp;nbsp;Ok, then that may be related to the bug fix. Hard to say without knowing why it didn&amp;#39;t reset, but it may sound like a bad state kind of situation. I wasn&amp;#39;t aware of this bug/bugfix. You can try to upgrade, and see if it continues to occur.&amp;nbsp;&lt;/p&gt;
[quote user="Bart Cerneels"]Could the bootloader be affected by peripheral device interrupts? Or even internal hardware blocks that are not fully reset?&lt;br /&gt;An example of peripheral device that is generating interrupts: our LED engine.[/quote]
&lt;p&gt;&amp;nbsp;My initial thought is no, because the nRF is reset when it enters bootloader mode, and this will reset all the gpios and peripherals, so none of the peripherals are initialized unless you actively do it in the bootloader.&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: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255824?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 14:51:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a359102-2fb5-492b-95a5-2cb34d46ef0e</guid><dc:creator>Bart Cerneels</dc:creator><description>[quote userid="26071" url="~/f/nordic-q-a/62755/dfu-lockup-fixed-in-sdk-16-0/255815"]The bug that is fixed is a bug that is present if you disconnect during the DFU, which is not a normal case.[/quote]
&lt;p&gt;Our application&amp;#39;s DFU process does do automatic reconnects if it loses connection to the bootloader.&amp;nbsp;This is a feature of the Android DFU library from nordic.&lt;br /&gt;&lt;br /&gt;We use the following configuration:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;.setDeviceName(&amp;quot;Cowboy&amp;quot;)
.setForceDfu(true)
.setKeepBond(true)
.setForeground(true)
.setMtu(247)
.setNumberOfRetries(3)
.setPacketsReceiptNotificationsEnabled(true)
.setPacketsReceiptNotificationsValue(6)
.setDisableNotification(false)
.setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(true)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255820?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 14:35:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:43970606-2293-4356-9894-989823ff1a5e</guid><dc:creator>Bart Cerneels</dc:creator><description>&lt;p&gt;This is happening only sporadically single digit percentage, more&amp;nbsp;with&amp;nbsp;android as DFU initiator even though it&amp;#39;s only 20% of the updates so far. But because of the size of our fleet it&amp;#39;s enough to hold the release.&lt;br /&gt;&lt;br /&gt;I didn&amp;#39;t manage to reproduce it under debug conditions yet. Doing one DFU after the other but no luck. I did try to force a disconnect right after the last block is received by the bootloader, manually using nRFConnect and turning BT off.&lt;br /&gt;&lt;br /&gt;Could the bootloader be affected by peripheral device interrupts? Or even internal hardware blocks that are not fully reset?&lt;br /&gt;An example of peripheral device that is generating interrupts: our LED engine.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU lockup fixed in SDK 16.0?</title><link>https://devzone.nordicsemi.com/thread/255815?ContentTypeID=1</link><pubDate>Thu, 18 Jun 2020 14:25:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8c44e76-85d8-455c-b9d7-87ccd4fa3843</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;No, I don&amp;#39;t think the two are related. Is this issue something you see every time, or from time to time only?&lt;/p&gt;
&lt;p&gt;The bug that is fixed is a bug that is present if you disconnect during the DFU, which is not a normal case.&lt;/p&gt;
&lt;p&gt;Have you tried to monitor the log from the bootloader project to find out why the device doesn&amp;#39;t reset after the DFU transfer is complete in SDK15.2.0?&lt;/p&gt;
&lt;p&gt;BR,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>