<?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>nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/127526/nrf51-legacy-dfu-sdk-9-0-fails-on-mediatek-android</link><description>Hi, 
 
 I&amp;#39;m looking for help with an Android DFU failure involving an old nRF51 Legacy DFU bootloader. 
 
 Setup: 
 - Bootloader: nRF51 Legacy DFU v0.8 (SDK 9.0) 
 - Firmware package: application ZIP, 129,016 bytes 
 - Device is already in DFU bootloader</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Mar 2026 14:56:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/127526/nrf51-legacy-dfu-sdk-9-0-fails-on-mediatek-android" /><item><title>RE: nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/thread/563900?ContentTypeID=1</link><pubDate>Mon, 23 Mar 2026 14:56:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe8a66fa-e75b-43ea-b8be-3dcf2c325f98</guid><dc:creator>Aleksander Nowakowski</dc:creator><description>&lt;p&gt;Hello!&lt;/p&gt;
&lt;p&gt;Error 8 received as a status for disconnection is ERROR_CONN_TIMEOUT. This can happen if the device does not respond within the connection interval. The &amp;quot;Start DFU&amp;quot; command was designed to erase the flash for the new image, which, depending on the image size, may take longer time. It also looks like the bootloader is spending 100% of time on this task and doesn&amp;#39;t bother keeping the open connection.&lt;/p&gt;
&lt;p&gt;If this happens on some phones, but works on another, the issue may be the connection interval or supervision timeout. With too short interval the erase operation may not complete withing the expected time and the phone may assume the connection is dead. Some other phones may have longer interval, greater supervision timeout (how many packets a peripheral can &amp;quot;sleep&amp;quot; without replying), so the connection is kept alive for a longer time. Also, decreasing the image size may help, but that isn&amp;#39;t something that you could easily do (would require changing the firmware), but&amp;nbsp;you may use for testing in nRF Connect:&lt;/p&gt;
&lt;p&gt;1. Connect in nRF Connect for Android&lt;br /&gt;2. Enable notifications on DFU Control Point&lt;br /&gt;3. Send &amp;quot;Start DFU&amp;quot; and set the same app size&amp;nbsp;&lt;span&gt;129016 bytes or try smaller size&lt;br /&gt;4. Observe if the device disconnects with larger images&lt;br /&gt;5. You may also LOW_POWER or BALANCED Reqeust Connection Proirity from nRF Connect and try with larget image size, giving the target more time to erase the image.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If that works, you may request lower connection priority to the device in your app before you send Start DFU packet.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/thread/563801?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2026 21:30:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:858d9b1b-4f9e-44f5-9450-e37690e4e6b5</guid><dc:creator>abinop</dc:creator><description>&lt;p&gt;So far I have only reproduced it on the MediaTek Android phone.&lt;/p&gt;
&lt;p&gt;I have not yet tested the same device / firmware package on a second Android phone with a different chipset, so at the moment I cannot say whether it is specific to MediaTek or affects Android more broadly.&lt;/p&gt;
&lt;p&gt;What I can confirm is:&lt;br /&gt;- it fails on our app on this MediaTek phone,&lt;br /&gt;- it also fails on Nordic&amp;rsquo;s DFU app on this same phone,&lt;br /&gt;- and iOS succeeds with the same target.&lt;/p&gt;
&lt;p&gt;My current suspicion is that this may be specific to this Android BLE stack, but I do not have a non-MediaTek Android comparison yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/thread/563800?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2026 19:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5dd102b1-a493-4b33-92bf-0d3773b6fd53</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Do you see the same issue on other Android phones, or is it specific to the MediaTek Android stack?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/thread/563789?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2026 16:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9425192-5c62-4697-a29c-98e1a0a1d10f</guid><dc:creator>abinop</dc:creator><description>&lt;p&gt;Thanks. I tested again and it still fails.&lt;/p&gt;
&lt;p&gt;Additional findings:&lt;br /&gt;- Our app still fails even after removing neverForLocation and enabling Android location permission.&lt;br /&gt;- Nordic&amp;rsquo;s own DFU app also fails on the same MediaTek Android phone with the same device / file.&lt;br /&gt;- iOS still succeeds.&lt;/p&gt;
&lt;p&gt;From our logs, the failure sequence is very consistent:&lt;/p&gt;
&lt;p&gt;1. Connect to DFU device&lt;br /&gt;2. Services discovered&lt;br /&gt;3. DFU Version read successfully:&lt;br /&gt; &amp;quot;Version number read: 0.8 -&amp;gt; Bootloader from SDK 9.0 or newer&amp;quot;&lt;br /&gt;4. Notifications enabled on Control Point&lt;br /&gt;5. Start DFU sent&lt;br /&gt;6. Image size array sent&lt;br /&gt;7. Device disconnects immediately:&lt;br /&gt; &amp;quot;Target device disconnected with status: 8&amp;quot;&lt;br /&gt;8. Library then reports:&lt;br /&gt; &amp;quot;Response not received: device disconnected (error 8)&amp;quot;&lt;/p&gt;
&lt;p&gt;Relevant log excerpt:&lt;/p&gt;
&lt;p&gt;- &amp;quot;Sending Start DFU command (Op Code = 1, Upload Mode = 4)&amp;quot;&lt;br /&gt;- &amp;quot;Sending image size array to DFU Packet (0b, 0b, 129016b)&amp;quot;&lt;br /&gt;- &amp;quot;Target device disconnected with status: 8&amp;quot;&lt;br /&gt;- &amp;quot;Response not received: device disconnected (error 8)&amp;quot;&lt;/p&gt;
&lt;p&gt;I also confirmed:&lt;br /&gt;- same MAC is used on reconnect (DB:98:FB:62:DD:B3)&lt;br /&gt;- this is not a MAC+1 case&lt;br /&gt;- the failure happens before init packet / firmware upload begins&lt;br /&gt;- changing app-side scan/location handling did not change the result&lt;/p&gt;
&lt;p&gt;At this point it seems the key problem is that on this MediaTek Android stack, after Start DFU + image sizes, the disconnect happens and Android never provides a usable Start DFU response to the host.&lt;/p&gt;
&lt;p&gt;Since Nordic&amp;rsquo;s own DFU app also fails on the same phone, this no longer looks app-specific.&lt;/p&gt;
&lt;p&gt;Do you know whether this is a known incompatibility with old nRF51 Legacy DFU (SDK 9.0), especially on some Android BLE stacks? If so, is the recommended workaround simply to use iOS / desktop tooling / another Android device, or is there any device-side or host-side setting that may still help?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF51 Legacy DFU SDK 9.0 Fails on MediaTek Android</title><link>https://devzone.nordicsemi.com/thread/563788?ContentTypeID=1</link><pubDate>Fri, 20 Mar 2026 16:31:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa947d08-1443-41fb-9606-dfeb23e65cc3</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Could you try &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/116277/issue-with-nrf-dfu-app-v2-7-0-on-android-11-and-14-dfu-update-fails-due-to-missing-location-permission/510409"&gt;this post&lt;/a&gt;?&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>