<?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 fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49260/dfu-fails-intermittently-with-error-8-operation-not-permitted</link><description>System Setup: 
 SDK 15.2.0, SD 6.1.1, iOS 12.3.1, IOS-Pods-DFU-Library 4.4.1 
 Target device: FanStel BC840M (nRF 52840) 
 Bootloader: examples/dfu/secure_bootloader 
 We are using buttonless DFU. The application was based on ble_app_buttonless_dfu from</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 15 Jul 2019 13:24:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49260/dfu-fails-intermittently-with-error-8-operation-not-permitted" /><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/198486?ContentTypeID=1</link><pubDate>Mon, 15 Jul 2019 13:24:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1a646d6-ab88-4f57-b541-65508d8d898f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Michael,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Having a look at the traces from iPhone XR and iPhone 7, I can see that the iPhone XR can send the firmware data much faster compare to iPhone 7. If you count the time from:&lt;br /&gt;&amp;quot;DFU:Sending firmware to DFU Packet characteristic...&amp;quot;&lt;/p&gt;
&lt;p&gt;until the next log, on iPhone XR it takes ~150ms when on iPhone 7 it takes 283ms.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This may suggest that it was due to the XR sending data too fast that causing the bootloader couldn&amp;#39;t handle it. We need to check the connection interval of the connections.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you can capture some &lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer"&gt;sniffer traces&lt;/a&gt;&amp;nbsp; to compare it would be great.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to try increase the preferred connection interval to slow down the update speed from the iPhone XR.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/198224?ContentTypeID=1</link><pubDate>Fri, 12 Jul 2019 15:03:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3455310f-8e36-4d15-a3b6-4472dc9c4cad</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Michael,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Sorry for the late response, I was on vacation this week.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Good to know that you have a temporary workaround.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will have a look at the traces. In the mean time, if possible could you capture the trace when the first update is success and the second update is failed ? (with&amp;nbsp;&lt;span&gt;packetReceiptNotifications = 12)&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/196329?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 16:18:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6174a950-105d-4285-8640-03f030fbe7fa</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;This issue&amp;nbsp;was also logged on GitHub here:&amp;nbsp;&lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/issues/319"&gt;https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/issues/319&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;@phillips77 suggested to set&amp;nbsp;&lt;strong&gt;packetReceiptNotifications&amp;nbsp;&lt;/strong&gt;to a small number so tested on iPhoneXR with setting == 1 and now we get 6 straight upgrades passed which never happened before.&amp;nbsp; This implies the bootloader cannot handle the speed of the XR or there is some kind of flow control issues in the protocol.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The default setting for packetReceiptNotifications is 12.&amp;nbsp; With this default setting the 1st upgrade after a power cycle always works and the 2nd upgrade almost always fails. This implies something is not getting set (or reset) in the bootloader when we trigger the upgrade.&amp;nbsp; The device gets into a state where a power cycle is required.&lt;/p&gt;
&lt;p&gt;For now we can work around the problem by setting&amp;nbsp;&lt;span&gt;packetReceiptNotifications==1 so this issue is not urgent. But it seems we do not know the root cause.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/196326?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 16:13:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fc532a-2ca6-4ace-8143-eca7adb33bb6</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Here is the log of iPhone XR doing successful DFU.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_success_5F00_xr.txt"&gt;devzone.nordicsemi.com/.../dfu_5F00_success_5F00_xr.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/196317?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 14:27:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:802ea4e7-ed0b-4bcc-b974-4ed8e533797e</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Here is the log of iPhone 7 doing successful DFU. iPhone XR will come later today.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_normal_5F00_verbose.txt"&gt;devzone.nordicsemi.com/.../dfu_5F00_normal_5F00_verbose.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/196272?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 13:02:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1cc3099f-742a-4a33-a92b-e96488a4f6f6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Michael,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The log you provided looks quite strange.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After the init packet was exchanged and executed (at&amp;nbsp;2019-07-02 11:41:25.624 ) , the DFU master starts to transmit the image , but after creating the object with&amp;nbsp;0x0602 at&amp;nbsp;2019-07-02 11:41:25.698. It didn&amp;#39;t send any image but request a CRC check and then execute the object which is very strange as there is no data has been sent yet.&lt;/p&gt;
&lt;p&gt;Could you try capture a trace of sending the same image but with iPhone 7, as well as with iPhone XR but on a successful session ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: DFU fails intermittently with:  Error 8: Operation not permitted</title><link>https://devzone.nordicsemi.com/thread/196074?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 19:27:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a84dd145-6741-4c56-9a1f-3980d0518153</guid><dc:creator>mchartier</dc:creator><description>&lt;p&gt;Here is the DFU log output with full verbosity turned on.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/dfu_5F00_error.txt"&gt;devzone.nordicsemi.com/.../dfu_5F00_error.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>