This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

dfu problem : GATT ERROR

SDK : 11.0.0

Board : nrf51822 (custom board)

softDevice : S130

test application : examples\ble_peripheral\ble_app_hrs\pca10028

  • IROM1 : 0x1B000 SIZE : 0x25000
  • IRAM1 : 0x20002080 SIZE : 0x5F80

test bootloader : examples\dfu\bootloader\pca10028\dual_bank_ble_s130

  • IROM1 : 0x3C000 SIZE : 0x3C00
  • IRAM1 : 0x20002C00 SIZE : 0x1380
  • IRAM2 : 0x20003F80 SIZE : 0x80 (NoInit)

I program sd+app+bootloader by nRFgo. then, I connected the bluetooth 'Nordic_HRM' by nRF Connect(android app). Select the zip file and upload it. However, the following log was output.


nRF Connect, 2016-08-18

Nordic_HRM

V 15:55:18.525 Connecting to Nordic_HRM...

D 15:55:18.539 gatt = device.connectGatt(autoConnect = false)

D 15:55:18.713 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED

D 15:55:18.738 [Callback] Connection state changed with status: 0 and new state: CONNECTED (2)

I 15:55:18.754 Connected to Nordic_HRM

D 15:55:18.768 wait(600ms)

V 15:55:19.414 Discovering services...

D 15:55:19.450 gatt.discoverServices()

D 15:55:21.592 [Callback] Services discovered with status: 0

I 15:55:21.621 Services discovered

V 15:55:21.678 Generic Access (0x1800)

  • Device Name [R W] (0x2A00)
  • Appearance [R] (0x2A01)
  • Peripheral Preferred Connection Parameters [R] (0x2A04) Generic Attribute (0x1801)
  • Service Changed [I] (0x2A05) Client Characteristic Configuration (0x2902) Heart Rate (0x180D)
  • Heart Rate Measurement [N] (0x2A37) Client Characteristic Configuration (0x2902)
  • Body Sensor Location [R] (0x2A38) Battery Service (0x180F)
  • Battery Level [N R] (0x2A19) Client Characteristic Configuration (0x2902) Device Information (0x180A)
  • Manufacturer Name String [R] (0x2A29) Device Firmware Update Service (00001530-1212-efde-1523-785feabcd123)
  • DFU Packet [WNR] (00001532-1212-efde-1523-785feabcd123)
  • DFU Control Point [N W] (00001531-1212-efde-1523-785feabcd123) Client Characteristic Configuration (0x2902)
  • DFU Version [R] (00001534-1212-efde-1523-785feabcd123)

V 15:55:29.924 Disconnecting...

D 15:55:29.941 gatt.disconnect()

D 15:55:29.958 [Callback] Connection state changed with status: 0 and new state: DISCONNECTED (0)

I 15:55:29.972 Disconnected

D 15:55:29.992 gatt.refresh()

D 15:55:30.009 gatt.close()

D 15:55:30.064 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

V 15:55:30.149 [DFU] DFU service started

V 15:55:30.164 [DFU] Opening file...

I 15:55:30.178 [DFU] Image file opened (25724 bytes in total)

D 15:55:30.193 [DFU] wait(1000)

V 15:55:31.139 [DFU] Connecting to DFU target...

D 15:55:31.172 [DFU] gatt = device.connectGatt(autoConnect = false)

D 15:55:31.739 [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED

I 15:55:31.780 [DFU] Connected to Nordic_HRM

V 15:55:31.798 [DFU] Discovering services...

D 15:55:31.821 [DFU] gatt.discoverServices()

I 15:55:34.470 [DFU] Services discovered

D 15:55:34.497 [DFU] wait(1000)

V 15:55:35.551 [DFU] Reading DFU version number...

I 15:55:35.630 [DFU] Read Response received from 00001534-1212-efde-1523-785feabcd123, value (0x): 01-00

A 15:55:35.644 [DFU] Version number read: 0.1

W 15:55:35.660 [DFU] Application with buttonless update found

V 15:55:35.675 [DFU] Jumping to the DFU Bootloader...

V 15:55:35.690 [DFU] Enabling notifications for 00001531-1212-efde-1523-785feabcd123

D 15:55:35.704 [DFU] gatt.setCharacteristicNotification(00001531-1212-efde-1523-785feabcd123, true)

D 15:55:35.740 [DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)

V 15:55:35.760 [DFU] Notifications enabled for 00001531-1212-efde-1523-785feabcd123

A 15:55:35.773 [DFU] Notifications enabled

D 15:55:35.786 [DFU] wait(1000)

V 15:55:36.753 [DFU] Writing to characteristic 00001531-1212-efde-1523-785feabcd123

D 15:55:36.770 [DFU] gatt.writeCharacteristic(00001531-1212-efde-1523-785feabcd123)

I 15:55:36.802 [DFU] Data written to 00001531-1212-efde-1523-785feabcd123, value (0x): 01-04

A 15:55:36.816 [DFU] Jump to bootloader sent (Op Code = 1, Upload Mode = 4)

I 15:55:36.921 [DFU] Disconnected by the remote device

D 15:55:36.939 [DFU] gatt.refresh() (hidden)

D 15:55:36.953 [DFU] gatt.close()

D 15:55:37.094 [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

V 15:55:37.122 [DFU] DFU service started

V 15:55:37.137 [DFU] Opening file...

I 15:55:37.152 [DFU] Image file opened (25724 bytes in total)

D 15:55:37.164 [DFU] wait(1000)

V 15:55:38.113 [DFU] Connecting to DFU target...

D 15:55:38.140 [DFU] gatt = device.connectGatt(autoConnect = false)

E 15:56:08.189 [DFU] Connection failed (0x85): GATT ERROR

W 15:56:08.223 [DFU] Retrying...

V 15:56:08.243 [DFU] Disconnecting...

D 15:56:08.262 [DFU] gatt.disconnect()

I 15:56:08.278 [DFU] Disconnected

D 15:56:08.297 [DFU] gatt.refresh() (hidden)

D 15:56:08.317 [DFU] gatt.close()

V 15:56:08.362 [DFU] DFU service started

V 15:56:08.381 [DFU] Opening file...

I 15:56:08.400 [DFU] Image file opened (25724 bytes in total)

D 15:56:08.419 [DFU] wait(1000)

V 15:56:09.390 [DFU] Connecting to DFU target...

D 15:56:09.428 [DFU] gatt = device.connectGatt(autoConnect = false)

E 15:56:39.453 [DFU] Connection failed (0x85): GATT ERROR

V 15:56:39.518 [DFU] Disconnecting...

D 15:56:39.536 [DFU] gatt.disconnect()

I 15:56:39.553 [DFU] Disconnected

D 15:56:39.570 [DFU] gatt.refresh() (hidden)

D 15:56:39.587 [DFU] gatt.close()

V 15:56:39.609 Connecting to Nordic_HRM...

D 15:56:39.626 gatt = device.connectGatt(autoConnect = true)

V 15:57:52.464 Cancelling connection...

D 15:57:52.490 gatt.disconnect()

I 15:57:52.518 Disconnected

D 15:57:52.542 gatt.close()


When I program sd+bootloader, It has been successfully updated. (connecting 'DfuTarg') What should I do?

Parents Reply Children
No Data
Related