{"action":"created","issue":{"url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/21","repository_url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox","labels_url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/21/comments","events_url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/21/events","html_url":"https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/issues/21","id":171854438,"number":21,"title":"nRF Toolbox DFU Operation failed","user":{"login":"LtkDev","id":21099730,"avatar_url":"https://avatars.githubusercontent.com/u/21099730?v=3","gravatar_id":"","url":"https://api.github.com/users/LtkDev","html_url":"https://github.com/LtkDev","followers_url":"https://api.github.com/users/LtkDev/followers","following_url":"https://api.github.com/users/LtkDev/following{/other_user}","gists_url":"https://api.github.com/users/LtkDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LtkDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LtkDev/subscriptions","organizations_url":"https://api.github.com/users/LtkDev/orgs","repos_url":"https://api.github.com/users/LtkDev/repos","events_url":"https://api.github.com/users/LtkDev/events{/privacy}","received_events_url":"https://api.github.com/users/LtkDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-18T09:15:17Z","updated_at":"2016-08-25T07:10:03Z","closed_at":null,"body":"With the default demo code or download nRF Toolbox App from AppStore, it's fail.\r\nDoes anyone know what the problem might be? Thanks\r\ndevices  ：nRF52 demo board PCA10040 V 1.1.0\r\nmobile    ：iPhone 5s, iOS 8.1.3  /  iPhone 6Plus, iOS 9.3.3\r\n\r\n### step1:Enter bootloader DFU mode.\r\n![img_1230](https://cloud.githubusercontent.com/assets/21099730/17768195/8bca3df0-6565-11e6-8c61-8489ad6bc516.PNG)\r\n\r\n### step2:Select file \"hrs_dfu_s130_2_0_0_7a_sdk_11_0_0_2a.zip\", and upload.\r\n![img_1231](https://cloud.githubusercontent.com/assets/21099730/17768219/a164367a-6565-11e6-87a7-8a9e364aba7e.PNG)\r\n\r\n### step3:Get the error message \"DFU Operation failed\", and log as following.\r\n![img_1232](https://cloud.githubusercontent.com/assets/21099730/17768252/be45ff12-6565-11e6-9c9f-c7c41181267d.PNG)\r\nobjc[860]: Class BluetoothManager is implemented in both /System/Library/PrivateFrameworks/BluetoothManager.framework/BluetoothManager and /private/var/mobile/Containers/Bundle/Application/81EEFFC7-2F0D-4212-8BA6-365D8407B50E/nRF Toolbox.app/nRF Toolbox. One of the two will be used. Which one is undefined.\r\n2016-08-18 16:09:20.112 nRF Toolbox[860:79822] getFilesFromDirectory\r\n2016-08-18 16:09:20.115 nRF Toolbox[860:79822] app resource path: /private/var/mobile/Containers/Bundle/Application/81EEFFC7-2F0D-4212-8BA6-365D8407B50E/nRF Toolbox.app\r\n2016-08-18 16:09:20.116 nRF Toolbox[860:79822] firmware folder path: /private/var/mobile/Containers/Bundle/Application/81EEFFC7-2F0D-4212-8BA6-365D8407B50E/nRF Toolbox.app/firmwares\r\n2016-08-18 16:09:20.116 nRF Toolbox[860:79822] getFilesFromDirectory\r\n2016-08-18 16:09:20.117 nRF Toolbox[860:79822] app resource path: /private/var/mobile/Containers/Bundle/Application/81EEFFC7-2F0D-4212-8BA6-365D8407B50E/nRF Toolbox.app\r\n2016-08-18 16:09:20.117 nRF Toolbox[860:79822] firmware folder path: /private/var/mobile/Containers/Bundle/Application/81EEFFC7-2F0D-4212-8BA6-365D8407B50E/nRF Toolbox.app/firmwares\r\n2016-08-18 16:09:23.431 nRF Toolbox[860:79822] \r\nWARNING: The class 'Manifest' is not key value coding-compliant for the key 'dfu_version'\r\n There is no support for optional type, array of optionals or enum properties.\r\nAs a workaround you can implement the function 'setValue forUndefinedKey' for this. See the unit tests for more information\r\n2016-08-18 16:09:29.934 nRF Toolbox[860:79822] 1: Connecting to DfuTarg...\r\n2016-08-18 16:09:29.935 nRF Toolbox[860:79822] 0: centralManager.connectPeripheral(peripheral, options:nil)\r\n2016-08-18 16:09:30.107 nRF Toolbox[860:79893] 0: [Callback] Central Manager did connect peripheral\r\n2016-08-18 16:09:30.108 nRF Toolbox[860:79893] 5: Connected to DfuTarg\r\n2016-08-18 16:09:30.109 nRF Toolbox[860:79893] 1: Discovering services...\r\n2016-08-18 16:09:30.109 nRF Toolbox[860:79893] 0: periphera.discoverServices(nil)\r\n2016-08-18 16:09:30.531 nRF Toolbox[860:79903] 5: Services discovered\r\n2016-08-18 16:09:30.532 nRF Toolbox[860:79903] 1: DFU Service found\r\n2016-08-18 16:09:30.534 nRF Toolbox[860:79903] 1: Discovering characteristics in DFU Service...\r\n2016-08-18 16:09:30.535 nRF Toolbox[860:79903] 0: peripheral.discoverCharacteristics(nil, forService:DFUService)\r\n2016-08-18 16:09:30.804 nRF Toolbox[860:79893] 5: DFU characteristics discovered\r\n2016-08-18 16:09:30.807 nRF Toolbox[860:79893] 1: Reading DFU Version number...\r\n2016-08-18 16:09:30.808 nRF Toolbox[860:79893] 0: peripheral.readValueForCharacteristic(00001534-1212-EFDE-1523-785FEABCD123)\r\n2016-08-18 16:09:30.863 nRF Toolbox[860:79903] 5: Read Response received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x):0800\r\n2016-08-18 16:09:30.864 nRF Toolbox[860:79903] 10: Version number read: 0.8\r\n2016-08-18 16:09:30.865 nRF Toolbox[860:79903] 1: Enabling notifiactions for 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:30.865 nRF Toolbox[860:79903] 0: peripheral.setNotifyValue(true, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123)\r\n2016-08-18 16:09:30.981 nRF Toolbox[860:79893] 1: Notifications enabled for 00001534-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:30.982 nRF Toolbox[860:79893] 10: DFU Control Point notifications enabled\r\n2016-08-18 16:09:30.983 nRF Toolbox[860:79893] 1: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:30.986 nRF Toolbox[860:79893] 0: peripheral.writeValue(0x0103, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123, type: WithResponse)\r\n2016-08-18 16:09:30.988 nRF Toolbox[860:79893] 1: Writing image sizes (104164b, 12996b, 0b) to characteristic 00001532-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:30.990 nRF Toolbox[860:79893] 0: peripheral.writeValue(0xe4960100c432000000000000, forCharacteristic: 00001534-1212-EFDE-1523-785FEABCD123, type: WithoutResponse)\r\n2016-08-18 16:09:31.041 nRF Toolbox[860:79903] 5: Data written to 00001531-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:31.042 nRF Toolbox[860:79903] 10: Start DFU (Op Code = 1, Upload Mode = 3) request sent\r\n2016-08-18 16:09:31.582 nRF Toolbox[860:79893] 5: Notification received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x):100101\r\n2016-08-18 16:09:31.583 nRF Toolbox[860:79893] 10: Response (Op Code = 1, Status = 1) received\r\n2016-08-18 16:09:31.584 nRF Toolbox[860:79893] 10: Writing Initialize DFU Parameters...\r\n2016-08-18 16:09:31.584 nRF Toolbox[860:79893] 1: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:31.585 nRF Toolbox[860:79893] 0: peripheral.writeValue(0x0200, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123, type: WithResponse)\r\n2016-08-18 16:09:31.586 nRF Toolbox[860:79893] 1: Writing to characteristic 00001532-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:31.588 nRF Toolbox[860:79893] 0: peripheral.writeValue(0xffffffffffffffff0100feff7630, forCharacteristic: 00001534-1212-EFDE-1523-785FEABCD123, type: WithoutResponse)\r\n2016-08-18 16:09:31.590 nRF Toolbox[860:79893] 1: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:31.591 nRF Toolbox[860:79893] 0: peripheral.writeValue(0x0201, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123, type: WithResponse)\r\n2016-08-18 16:09:31.640 nRF Toolbox[860:79903] 5: Data written to 00001531-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:31.700 nRF Toolbox[860:79893] 5: Data written to 00001531-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:31.701 nRF Toolbox[860:79903] 5: Notification received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x):100201\r\n2016-08-18 16:09:31.701 nRF Toolbox[860:79903] 10: Response (Op Code = 2, Status = 1) received\r\n2016-08-18 16:09:31.701 nRF Toolbox[860:79903] 10: Initialize DFU Parameters completed\r\n2016-08-18 16:09:31.702 nRF Toolbox[860:79903] 1: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:31.703 nRF Toolbox[860:79903] 0: peripheral.writeValue(0x080c00, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123, type: WithResponse)\r\n2016-08-18 16:09:31.760 nRF Toolbox[860:79893] 5: Data written to 00001531-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:31.761 nRF Toolbox[860:79893] 10: Packet Receipt Notif Req (Op Code = 8, Value = 12) request sent\r\n2016-08-18 16:09:31.761 nRF Toolbox[860:79893] 1: Writing to characteristic 00001531-1212-EFDE-1523-785FEABCD123...\r\n2016-08-18 16:09:31.762 nRF Toolbox[860:79893] 0: peripheral.writeValue(0x03, forCharacteristic: 00001531-1212-EFDE-1523-785FEABCD123, type: WithResponse)\r\n2016-08-18 16:09:31.821 nRF Toolbox[860:79903] 5: Data written to 00001531-1212-EFDE-1523-785FEABCD123\r\n2016-08-18 16:09:31.821 nRF Toolbox[860:79903] 10: Receive Firmware Image (Op Code = 3) request sent\r\n2016-08-18 16:09:31.822 nRF Toolbox[860:79903] 10: Uploading firmware...\r\n2016-08-18 16:09:31.822 nRF Toolbox[860:79903] 1: Sending firmware DFU Packet characteristic...\r\n2016-08-18 16:09:31.881 nRF Toolbox[860:79893] 5: Notification received from 00001534-1212-EFDE-1523-785FEABCD123, value (0x):100306\r\n2016-08-18 16:09:31.882 nRF Toolbox[860:79893] 10: Response (Op Code = 3, Status = 6) received\r\n2016-08-18 16:09:31.883 nRF Toolbox[860:79893] 20: Error 6: Operation failed\r\n2016-08-18 16:09:31.883 nRF Toolbox[860:79893] 1: Disconnecting...\r\n2016-08-18 16:09:31.884 nRF Toolbox[860:79893] 0: centralManager.cancelPeripheralConnection(peripheral)\r\n2016-08-18 16:09:31.887 nRF Toolbox[860:79903] 0: [Callback] Central Manager did disconnect peripheral without error\r\n2016-08-18 16:09:31.887 nRF Toolbox[860:79903] 5: Disconnected\r\n2016-08-18 16:09:31.888 nRF Toolbox[860:79822] Error 6: Operation failed\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/comments/242299587","html_url":"https://github.com/NordicSemiconductor/IOS-nRF-Toolbox/issues/21#issuecomment-242299587","issue_url":"https://api.github.com/repos/NordicSemiconductor/IOS-nRF-Toolbox/issues/21","id":242299587,"user":{"login":"LtkDev","id":21099730,"avatar_url":"https://avatars.githubusercontent.com/u/21099730?v=3","gravatar_id":"","url":"https://api.github.com/users/LtkDev","html_url":"https://github.com/LtkDev","followers_url":"https://api.github.com/users/LtkDev/followers","following_url":"https://api.github.com/users/LtkDev/following{/other_user}","gists_url":"https://api.github.com/users/LtkDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LtkDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LtkDev/subscriptions","organizations_url":"https://api.github.com/users/LtkDev/orgs","repos_url":"https://api.github.com/users/LtkDev/repos","events_url":"https://api.github.com/users/LtkDev/events{/privacy}","received_events_url":"https://api.github.com/users/LtkDev/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T07:10:03Z","updated_at":"2016-08-25T07:10:03Z","body":"@mostafaberg Thank you so much!  DFU is workable!\r\nAfter reinstall nRF Toolbox and use another board with SDK v11 & s132 v2.0.0, it worked now."}}
{"actor":{"display_login":"LtkDev"}}