<?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>ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/1058/ios-nrf-loader-timeout-during-upload</link><description>I have the nRF Loader app installed on an iPad Mini. I have the dfu_dual_bank_ble firmware from SDK V5.0.0 and SoftDevice V6.0.0.1-beta loaded on my nRF51822. 
 The app is able to see the device named &amp;quot;DfuTarg&amp;quot; and pair with it, the status becomes &amp;quot;ready</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 16 Dec 2013 12:57:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/1058/ios-nrf-loader-timeout-during-upload" /><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5018?ContentTypeID=1</link><pubDate>Mon, 16 Dec 2013 12:57:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2e7a0049-c042-4a18-b265-1ddacab70ec8</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;I believe that the bootloader should compile out of the box, but I suspect that disabling optimizations might make it not fit anymore. Anyway, great that you&amp;#39;ve gotten further!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5017?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2013 19:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc8843ed-0f2c-41e1-bd14-fbf992be17ef</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;I was compiling using MicroLib, because the original project configuration did not seem to fit, it threw a bunch of linker errors that were similar to some previous not-enough-RAM problems I faced. Enabling MicroLib allowed the project to compile, but I suspect it made it run slower.&lt;/p&gt;
&lt;p&gt;I just tested bootloading my own application and it works. I added the command&lt;/p&gt;
&lt;p&gt;fromelf --bin --output &amp;quot;$L@L.bin&amp;quot; &amp;quot;#L&amp;quot;&lt;/p&gt;
&lt;p&gt;to my post build execution steps to generate the bin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5016?ContentTypeID=1</link><pubDate>Tue, 10 Dec 2013 16:40:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6df60da-4564-455b-a636-33ea55c46ce4</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;That&amp;#39;s interesting indeed. I saw NO_MEMORY errors once in a while when developing the app, but that was only when having long printf-s several places in the bootloader. I would not at all expect it to happen with the bootloader directly from the SDK. Do you still see errors when not doing any debug output?&lt;/p&gt;
&lt;p&gt;There isn&amp;#39;t any magic about creating a bin file to be used with nRF Loader, you can for example do like this to do such conversion:
&lt;a target="_blank" href="https://devzone.nordicsemi.com/index.php/how-to-use-the-nrf-loader-to-do-ota#reply-3155" rel="nofollow"&gt;https://devzone.nordicsemi.com/index.php/how-to-use-the-nrf-loader-to-do-ota#reply-3155&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5015?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2013 20:12:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10f7903f-e093-4278-90fa-aa6c071f461e</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;I am just trying out ble_app_rscs, 17260 bytes&lt;/p&gt;
&lt;p&gt;changing notificationPacketInterval to 1 worked! it seems to transfer 20 (which is max packet size) bytes per notification now.&lt;/p&gt;
&lt;p&gt;should I just increase it until it stops working?&lt;/p&gt;
&lt;p&gt;Also although it seems to detect a valid application because it attempts to launch it, the application itself seems to be self-resetting... How do I go about generating a .bin file from my own .hex file?&lt;/p&gt;
&lt;p&gt;I realize the above question is actually very simple to answer myself, but hex files specify addresses, bin files do not, I need to know the proper way of doing the conversion because of the address offset.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5013?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2013 15:34:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be0db930-8b5a-41c3-afc1-761f71c4a9a1</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Thanks for the logs. I&amp;#39;ve posted a separate answer showing how the number of packets transmitted per notification can be changed, since it doesn&amp;#39;t seem to have anything to do with what I thought was the initial problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5014?ContentTypeID=1</link><pubDate>Mon, 09 Dec 2013 15:34:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d48c10ab-f10d-48e2-b74a-1eda2b77ebb7</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;You can change how many packets the iOS app sends between receiving a confirmation, which may help NO_MEMORY issues, by tuning the setting of the notificationPacketInterval in setFirmwareURL of the DFUController.&lt;/p&gt;
&lt;p&gt;The algorithm to set this number was chosen based on getting a reasonable amount of updates over an application upload, but doesn&amp;#39;t check the size it ends up at. May I ask how large the binary you&amp;#39;re trying to upload is? It could be that this number simply becomes too big for the buffers on the nRF51822 side if the binary itself is big.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5012?ContentTypeID=1</link><pubDate>Sun, 08 Dec 2013 22:06:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5eec4e2e-3a6e-4bbb-b42a-4d7f0d479458</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;I&amp;#39;ve identified that hci_mem_pool_rx_produce is failing due to NRF_ERROR_NO_MEM&lt;/p&gt;
&lt;p&gt;Is it because iOS is sending faster than the nRF can process? How do we slow down iOS?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5011?ContentTypeID=1</link><pubDate>Sun, 08 Dec 2013 21:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c3e68d67-de02-41e0-bcbf-ce969e78a18b</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;I added some UART debug statements to the nRF DFU code.&lt;/p&gt;
&lt;p&gt;It seems like the nRF51 chip itself is resetting periodically after the dfu timer times out.&lt;/p&gt;
&lt;p&gt;Once upload starts, it hits &amp;quot;receive fw&amp;quot; and runs &amp;quot;app_data_process&amp;quot; a few times, then it freezes for a few seconds before the entire microcontroller resets&lt;/p&gt;
&lt;p&gt;Also I am forced to use MicroLIB to compile, because without MicroLIB, it doesn&amp;#39;t fit into the IRAM. I wonder if that makes a difference&lt;/p&gt;
&lt;p&gt;the iOS NSLog is shown below&lt;/p&gt;
&lt;p&gt;2013-12-08 15:36:47.286 nRF Loader[1103:60b] Set firmware with size 17260, notificationPacketInterval: 43
2013-12-08 15:36:47.398 nRF Loader[1103:60b] CoreBluetooth[WARNING] &amp;lt;CBCentralManager: 0x15d24510&amp;gt; is disabling duplicate filtering, but is using the default queue (main thread) for delegate events
2013-12-08 15:36:47.401 nRF Loader[1103:60b] Started scan.
2013-12-08 15:36:47.405 nRF Loader[1103:60b] Central manager did update state: 5
2013-12-08 15:36:48.519 nRF Loader[1103:60b] Stopped scan.
2013-12-08 15:36:48.634 nRF Loader[1103:60b] didConnectPeripheral DfuTarg
2013-12-08 15:36:48.637 nRF Loader[1103:60b] didConnect
2013-12-08 15:36:48.640 nRF Loader[1103:60b] State changed from 0 to 1.
2013-12-08 15:36:49.196 nRF Loader[1103:60b] didDiscoverServices succeeded.
2013-12-08 15:36:49.199 nRF Loader[1103:60b] Discover characteristics...
2013-12-08 15:36:49.376 nRF Loader[1103:60b] didDiscoverCharacteristics succeeded.
2013-12-08 15:36:49.379 nRF Loader[1103:60b] Found packet characteristic.
2013-12-08 15:36:49.380 nRF Loader[1103:60b] Found control point characteristic.
2013-12-08 15:36:49.382 nRF Loader[1103:60b] didFinishDiscovery
2013-12-08 15:36:49.384 nRF Loader[1103:60b] State changed from 1 to 2.
2013-12-08 15:36:55.144 nRF Loader[1103:60b] startTransfer
2013-12-08 15:36:55.146 nRF Loader[1103:60b] State changed from 2 to 3.
2013-12-08 15:36:55.148 nRF Loader[1103:60b] sendNotificationRequest
2013-12-08 15:36:55.196 nRF Loader[1103:60b] didWriteControlPoint, state 3
2013-12-08 15:36:55.199 nRF Loader[1103:60b] State changed from 3 to 4.
2013-12-08 15:36:55.202 nRF Loader[1103:60b] sendStartCommand
2013-12-08 15:36:55.256 nRF Loader[1103:60b] didWriteControlPoint, state 4
2013-12-08 15:36:55.316 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100101&amp;gt;.
2013-12-08 15:36:55.319 nRF Loader[1103:60b] didReceiveResponse, 1, in state 4
2013-12-08 15:36:55.321 nRF Loader[1103:60b] State changed from 4 to 5.
2013-12-08 15:36:55.322 nRF Loader[1103:60b] sendReceiveCommand
2013-12-08 15:36:55.376 nRF Loader[1103:60b] didWriteControlPoint, state 5
2013-12-08 15:36:55.379 nRF Loader[1103:60b] State changed from 5 to 6.
2013-12-08 15:36:55.380 nRF Loader[1103:60b] sendFirmwareData
2013-12-08 15:36:55.392 nRF Loader[1103:60b] didWriteDataPacket
2013-12-08 15:36:55.394 nRF Loader[1103:60b] State changed from 6 to 9.
2013-12-08 15:36:55.395 nRF Loader[1103:60b] Sent 860 bytes, total 860.
2013-12-08 15:36:55.438 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.440 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.442 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.443 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.466 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.469 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.471 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.473 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.498 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.499 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.501 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.503 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.526 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.529 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.531 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.533 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.556 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.559 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.586 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.589 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.591 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.592 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.616 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.619 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:36:55.621 nRF Loader[1103:60b] Did update value for characteristic &amp;lt;CBCharacteristic: 0x15e56cf0&amp;gt;. Value: &amp;lt;100306&amp;gt;.
2013-12-08 15:36:55.622 nRF Loader[1103:60b] didReceiveResponse, 6, in state 9
2013-12-08 15:37:56.349 nRF Loader[1103:60b] didDisconnectPeripheral DfuTarg: Error Domain=CBErrorDomain Code=6 &amp;quot;The connection has timed out unexpectedly.&amp;quot; UserInfo=0x15d49480 {NSLocalizedDescription=The connection has timed out unexpectedly.}
2013-12-08 15:37:56.351 nRF Loader[1103:60b] didDisconnect
2013-12-08 15:37:56.481 nRF Loader[1103:60b] State changed from 9 to 0.
2013-12-08 15:37:56.554 nRF Loader[1103:60b] cancelTransfer
2013-12-08 15:37:56.556 nRF Loader[1103:60b] CoreBluetooth[WARNING] &amp;lt;CBCentralManager: 0x15d24510&amp;gt; is disabling duplicate filtering, but is using the default queue (main thread) for delegate events
2013-12-08 15:37:56.560 nRF Loader[1103:60b] Started scan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5010?ContentTypeID=1</link><pubDate>Fri, 06 Dec 2013 09:41:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a83de543-e340-45a3-8a17-8e83bfc901eb</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;If you only see the device when it is connected, this is not the bonding issue after all. Which iOS version are you using? Do you have the possibility to run the app in a development environment?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5009?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2013 20:08:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90402f1d-6076-441a-9b5e-5c89273c52ec</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;I can only see the device in the iOS settings when the nRF Loader application is in the connected state. I can&amp;#39;t do anything with it, tapping on the name does nothing, tap and hold does nothing, I can&amp;#39;t swipe it away... How do I make the bond disappear?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5008?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 15:05:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c90fdcb-a577-4e1a-a2b6-8dd8d3f5cf7f</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;No, all bonding on iOS is completely transparent to an app, and you have no control over it. The only way to delete a bond on iOS is for the user to go into the Settings menu and manually &amp;quot;Forget this device&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5007?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 15:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23b8b173-0c06-4f31-9783-28ee4168651b</guid><dc:creator>Frank Zhao</dc:creator><description>&lt;p&gt;Is there an explicit un-bond function in iOS? I tried Google, no relevant results.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ios nrf loader timeout during upload</title><link>https://devzone.nordicsemi.com/thread/5006?ContentTypeID=1</link><pubDate>Wed, 04 Dec 2013 12:00:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3722bbb7-5632-4321-8ed8-56904614f1f1</guid><dc:creator>Ole Morten</dc:creator><description>&lt;p&gt;Could it be that you have a bond with your device? If so, the DFU solution as given in the SDK will need to be modified to work. Take a look at &lt;a href="https://devzone.nordicsemi.com/index.php/nrf-loader-app-on-ios-failes-if-device-is-paired#reply-3263"&gt;this question for details&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If this is not the problem, it would have been very useful if you could run the application directly from an iOS development environment, and posting the log output of it. This should make it more clear what happens.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>