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

SDK15.3 buttonless dfu example cant get into dfu mode on pca10040 using armgcc build.

nRF Connect log shows DFU mode cannot be achieved. Same test on SDK15.2 worked.

Comparing the ld files of 15.2 and 15.3 shows uicr_bootloader_start_address and uicr_mbr_params_page

are quite different. 

SDK15.2

uicr_bootloader_start_address (r) : ORIGIN = 0x100010014, LENGTH =0x4

uicr_mbr_params_page (r) : ORIGIN = 0x10001018, LENGTH = 0x4

SDK 15.3

uicr_bootloader_start_address (r) : ORIGIN = 0x00000FF8, LENGTH =0x4

uicr_mbr_params_page (r) : ORIGIN = 0x00000FFC, LENGTH = 0x4

Is this why SDK15.3 DFU is not working?

nRF Connect, 2019-09-13
Nordic_Buttonless (D3:CD:8A:FD:E1:51)
V	12:20:27.822	Connecting to D3:CD:8A:FD:E1:51...
D	12:20:27.822	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	12:20:29.342	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:20:29.358	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	12:20:29.358	Connected to D3:CD:8A:FD:E1:51
V	12:20:29.399	Discovering services...
D	12:20:29.399	gatt.discoverServices()
I	12:20:29.726	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	12:20:29.921	[Callback] Services discovered with status: 0
I	12:20:29.921	Services discovered
V	12:20:29.946	Generic Access (0x1800)
- Device Name [R W] (0x2A00)
- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
- Central Address Resolution [R] (0x2AA6)
Generic Attribute (0x1801)
- Service Changed [I] (0x2A05)
Client Characteristic Configuration (0x2902)
Secure DFU Service (0xFE59)
- Buttonless DFU [I W] (8ec90003-f315-4f60-9fb8-838830daea50)
Client Characteristic Configuration (0x2902)
D	12:20:29.946	gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
I	12:20:29.993	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
I	12:20:34.452	Connection parameters updated (interval: 195.0ms, latency: 0, timeout: 4000ms)
V	12:20:39.692	[DFU] DFU service started
V	12:20:39.692	[DFU] Opening file...
I	12:20:39.699	[DFU] Firmware file opened successfully
V	12:20:39.699	[DFU] Connecting to DFU target...
D	12:20:39.703	[DFU] gatt = device.connectGatt(autoConnect = false)
I	12:20:39.719	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:20:39.720	[DFU] Discovering services...
D	12:20:39.720	[DFU] gatt.discoverServices()
I	12:20:39.731	[DFU] Services discovered
D	12:20:39.747	[DFU] wait(1000)
W	12:20:40.805	[DFU] Application with buttonless update found
V	12:20:40.805	[DFU] Jumping to the DFU Bootloader...
V	12:20:40.805	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:20:40.805	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:20:40.805	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:20:41.094	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:20:41.094	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:20:41.094	[DFU] Indications enabled
D	12:20:41.094	[DFU] wait(1000)
V	12:20:42.118	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:20:42.118	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
I	12:20:42.463	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:20:42.464	[DFU] Enter bootloader sent (Op Code = 1)
A	12:20:42.465	[DFU] Response received (Op Code = 1, Status = 1)
D	12:20:46.677	[Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E	12:20:46.678	Error 8 (0x8): GATT CONN TIMEOUT
I	12:20:46.678	Disconnected
I	12:20:46.756	[DFU] Disconnected by the remote device
D	12:20:46.756	[DFU] gatt.refresh() (hidden)
D	12:20:46.756	[DFU] gatt.close()
V	12:20:46.756	[DFU] Scanning for the DFU Bootloader...
D	12:20:46.756	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:20:46.768	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
I	12:20:51.763	[DFU] DFU Bootloader not found. Trying the same address...
V	12:20:51.798	[DFU] DFU service started
I	12:20:51.798	[DFU] Firmware file opened successfully
D	12:20:51.799	[DFU] wait(1000)
D	12:20:52.801	[DFU] wait(1000)
V	12:20:53.801	[DFU] Connecting to DFU target...
D	12:20:53.837	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:20:54.577	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:20:54.597	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:20:54.597	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:20:54.597	[DFU] Discovering services...
D	12:20:54.597	[DFU] gatt.discoverServices()
I	12:20:55.170	[DFU] Services discovered
D	12:20:55.192	[DFU] wait(1000)
W	12:20:56.190	[DFU] Application with buttonless update found
V	12:20:56.190	[DFU] Jumping to the DFU Bootloader...
V	12:20:56.190	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:20:56.191	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:20:56.195	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:20:56.281	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:20:56.282	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:20:56.283	[DFU] Indications enabled
D	12:20:56.283	[DFU] wait(1000)
V	12:20:57.320	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:20:57.320	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:20:57.398	[DFU] Enter bootloader sent (Op Code = 1)
I	12:20:57.399	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:20:57.402	[DFU] Response received (Op Code = 1, Status = 1)
I	12:21:02.472	[DFU] Disconnected by the remote device
D	12:21:02.475	[DFU] gatt.refresh() (hidden)
D	12:21:02.485	[DFU] gatt.close()
D	12:21:02.486	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:02.491	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	12:21:02.519	[DFU] Scanning for the DFU Bootloader...
I	12:21:02.747	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:21:02.766	[DFU] DFU service started
I	12:21:02.766	[DFU] Firmware file opened successfully
D	12:21:02.766	[DFU] wait(1000)
D	12:21:03.768	[DFU] wait(1000)
V	12:21:04.816	[DFU] Connecting to DFU target...
D	12:21:04.817	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:21:05.768	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:21:05.794	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:05.794	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:21:05.794	[DFU] Discovering services...
D	12:21:05.794	[DFU] gatt.discoverServices()
I	12:21:06.335	[DFU] Services discovered
D	12:21:06.377	[DFU] wait(1000)
W	12:21:07.361	[DFU] Application with buttonless update found
V	12:21:07.361	[DFU] Jumping to the DFU Bootloader...
V	12:21:07.361	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:07.361	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:21:07.368	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:21:07.434	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:21:07.434	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:21:07.434	[DFU] Indications enabled
D	12:21:07.439	[DFU] wait(1000)
V	12:21:08.474	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:08.474	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:21:08.515	[DFU] Enter bootloader sent (Op Code = 1)
I	12:21:08.517	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:21:08.517	[DFU] Response received (Op Code = 1, Status = 1)
I	12:21:13.580	[DFU] Disconnected by the remote device
D	12:21:13.582	[DFU] gatt.refresh() (hidden)
D	12:21:13.589	[DFU] gatt.close()
D	12:21:13.595	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:13.621	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	12:21:13.621	[DFU] Scanning for the DFU Bootloader...
I	12:21:13.864	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:21:13.893	[DFU] DFU service started
I	12:21:13.893	[DFU] Firmware file opened successfully
D	12:21:13.893	[DFU] wait(1000)
D	12:21:14.894	[DFU] wait(1000)
V	12:21:15.931	[DFU] Connecting to DFU target...
D	12:21:15.935	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:21:18.574	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:18.611	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:21:18.611	[DFU] Discovering services...
D	12:21:18.611	[DFU] gatt.discoverServices()
D	12:21:18.611	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:19.165	[DFU] Services discovered
D	12:21:19.199	[DFU] wait(1000)
W	12:21:20.186	[DFU] Application with buttonless update found
V	12:21:20.186	[DFU] Jumping to the DFU Bootloader...
V	12:21:20.186	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:20.186	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:21:20.191	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:21:20.262	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:21:20.262	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:21:20.263	[DFU] Indications enabled
D	12:21:20.263	[DFU] wait(1000)
V	12:21:21.294	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:21.296	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:21:21.385	[DFU] Enter bootloader sent (Op Code = 1)
I	12:21:21.385	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:21:21.385	[DFU] Response received (Op Code = 1, Status = 1)
I	12:21:26.453	[DFU] Disconnected by the remote device
D	12:21:26.456	[DFU] gatt.refresh() (hidden)
D	12:21:26.459	[DFU] gatt.close()
D	12:21:26.465	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:26.498	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	12:21:26.498	[DFU] Scanning for the DFU Bootloader...
I	12:21:26.723	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:21:26.736	[DFU] DFU service started
I	12:21:26.736	[DFU] Firmware file opened successfully
D	12:21:26.736	[DFU] wait(1000)
D	12:21:27.737	[DFU] wait(1000)
V	12:21:28.772	[DFU] Connecting to DFU target...
D	12:21:28.773	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:21:29.152	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:29.172	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:21:29.172	[DFU] Discovering services...
D	12:21:29.172	[DFU] gatt.discoverServices()
D	12:21:29.173	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:29.726	[DFU] Services discovered
D	12:21:29.807	[DFU] wait(1000)
W	12:21:30.739	[DFU] Application with buttonless update found
V	12:21:30.739	[DFU] Jumping to the DFU Bootloader...
V	12:21:30.739	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:30.739	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:21:30.741	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:21:30.832	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:21:30.832	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:21:30.832	[DFU] Indications enabled
D	12:21:30.832	[DFU] wait(1000)
V	12:21:31.855	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:31.855	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:21:31.913	[DFU] Enter bootloader sent (Op Code = 1)
I	12:21:31.913	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:21:31.914	[DFU] Response received (Op Code = 1, Status = 1)
I	12:21:36.986	[DFU] Disconnected by the remote device
D	12:21:36.990	[DFU] gatt.refresh() (hidden)
D	12:21:36.999	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:37.031	[DFU] gatt.close()
V	12:21:37.031	[DFU] Scanning for the DFU Bootloader...
D	12:21:37.032	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
I	12:21:41.875	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:21:41.912	[DFU] DFU service started
I	12:21:41.912	[DFU] Firmware file opened successfully
D	12:21:41.912	[DFU] wait(1000)
D	12:21:42.912	[DFU] wait(1000)
V	12:21:43.923	[DFU] Connecting to DFU target...
D	12:21:43.924	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:21:45.976	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:21:46.002	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:46.003	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:21:46.003	[DFU] Discovering services...
D	12:21:46.003	[DFU] gatt.discoverServices()
I	12:21:46.562	[DFU] Services discovered
D	12:21:46.583	[DFU] wait(1000)
W	12:21:47.577	[DFU] Application with buttonless update found
V	12:21:47.578	[DFU] Jumping to the DFU Bootloader...
V	12:21:47.578	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:47.578	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:21:47.580	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:21:47.662	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:21:47.662	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:21:47.663	[DFU] Indications enabled
D	12:21:47.663	[DFU] wait(1000)
V	12:21:48.679	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:48.679	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
I	12:21:48.787	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:21:48.787	[DFU] Enter bootloader sent (Op Code = 1)
A	12:21:48.787	[DFU] Response received (Op Code = 1, Status = 1)
I	12:21:53.868	[DFU] Disconnected by the remote device
D	12:21:53.879	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:53.910	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:21:53.910	[DFU] gatt.refresh() (hidden)
D	12:21:53.910	[DFU] gatt.close()
V	12:21:53.910	[DFU] Scanning for the DFU Bootloader...
I	12:21:54.137	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:21:54.154	[DFU] DFU service started
I	12:21:54.154	[DFU] Firmware file opened successfully
D	12:21:54.154	[DFU] wait(1000)
D	12:21:55.153	[DFU] wait(1000)
V	12:21:56.256	[DFU] Connecting to DFU target...
D	12:21:56.257	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:21:56.717	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:21:56.737	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:21:56.737	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:21:56.737	[DFU] Discovering services...
D	12:21:56.737	[DFU] gatt.discoverServices()
I	12:21:57.325	[DFU] Services discovered
D	12:21:57.350	[DFU] wait(1000)
W	12:21:58.344	[DFU] Application with buttonless update found
V	12:21:58.344	[DFU] Jumping to the DFU Bootloader...
V	12:21:58.344	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:58.344	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:21:58.346	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:21:58.416	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:21:58.416	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:21:58.417	[DFU] Indications enabled
D	12:21:58.417	[DFU] wait(1000)
V	12:21:59.454	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:21:59.455	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:21:59.545	[DFU] Enter bootloader sent (Op Code = 1)
I	12:21:59.545	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:21:59.545	[DFU] Response received (Op Code = 1, Status = 1)
I	12:22:04.605	[DFU] Disconnected by the remote device
D	12:22:04.607	[DFU] gatt.refresh() (hidden)
D	12:22:04.612	[DFU] gatt.close()
D	12:22:04.616	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:22:04.653	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	12:22:04.653	[DFU] Scanning for the DFU Bootloader...
I	12:22:06.623	[DFU] DFU Bootloader found with address D3:CD:8A:FD:E1:51
V	12:22:06.639	[DFU] DFU service started
I	12:22:06.639	[DFU] Firmware file opened successfully
D	12:22:06.640	[DFU] wait(1000)
D	12:22:07.658	[DFU] wait(1000)
V	12:22:08.642	[DFU] Connecting to DFU target...
D	12:22:08.684	[DFU] gatt = device.connectGatt(autoConnect = false)
D	12:22:09.808	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:22:09.810	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
I	12:22:09.810	[DFU] Connected to D3:CD:8A:FD:E1:51
V	12:22:09.813	[DFU] Discovering services...
D	12:22:09.814	[DFU] gatt.discoverServices()
I	12:22:10.413	[DFU] Services discovered
D	12:22:10.448	[DFU] wait(1000)
W	12:22:11.437	[DFU] Application with buttonless update found
V	12:22:11.437	[DFU] Jumping to the DFU Bootloader...
V	12:22:11.437	[DFU] Enabling indications for 8ec90003-f315-4f60-9fb8-838830daea50
D	12:22:11.438	[DFU] gatt.setCharacteristicNotification(8ec90003-f315-4f60-9fb8-838830daea50, true)
D	12:22:11.439	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x02-00)
I	12:22:11.515	[DFU] Data written to descr.8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 02-00
V	12:22:11.515	[DFU] Notifications enabled for 8ec90003-f315-4f60-9fb8-838830daea50
A	12:22:11.515	[DFU] Indications enabled
D	12:22:11.516	[DFU] wait(1000)
V	12:22:12.565	[DFU] Writing to characteristic 8ec90003-f315-4f60-9fb8-838830daea50
D	12:22:12.565	[DFU] gatt.writeCharacteristic(8ec90003-f315-4f60-9fb8-838830daea50)
A	12:22:12.592	[DFU] Enter bootloader sent (Op Code = 1)
I	12:22:12.592	[DFU] Notification received from 8ec90003-f315-4f60-9fb8-838830daea50, value (0x): 20-01-01
A	12:22:12.592	[DFU] Response received (Op Code = 1, Status = 1)
I	12:22:17.667	[DFU] Disconnected by the remote device
D	12:22:17.670	[DFU] gatt.refresh() (hidden)
D	12:22:17.672	[DFU] gatt.close()
D	12:22:17.683	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
D	12:22:17.718	[DFU] [Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED
V	12:22:17.718	[DFU] Scanning for the DFU Bootloader...
I	12:22:22.733	[DFU] DFU Bootloader not found. Trying the same address...
V	12:22:22.765	[DFU] DFU service started
I	12:22:22.765	[DFU] Firmware file opened successfully
D	12:22:22.765	[DFU] wait(1000)
D	12:22:23.770	[DFU] wait(1000)
V	12:22:24.797	[DFU] Connecting to DFU target...
D	12:22:24.799	[DFU] gatt = device.connectGatt(autoConnect = false)
E	12:22:25.984	[DFU] Error 133: Connection timeout
D	12:22:25.987	[DFU] gatt.refresh() (hidden)
D	12:22:25.991	[DFU] gatt.close()
D	12:22:26.001	[DFU] wait(600)
D	12:22:26.604	gatt.close()
D	12:22:26.612	wait(200)
V	12:22:26.822	Connecting to D3:CD:8A:FD:E1:51...
D	12:22:26.822	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	12:22:27.506	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:22:27.534	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	12:22:27.534	Connected to D3:CD:8A:FD:E1:51
V	12:22:27.566	Discovering services...
D	12:22:27.566	gatt.discoverServices()
I	12:22:27.896	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	12:22:28.102	[Callback] Services discovered with status: 0
I	12:22:28.102	Services discovered
V	12:22:28.122	Generic Access (0x1800)
- Device Name [R W] (0x2A00):





- Appearance [R] (0x2A01)
- Peripheral Preferred Connection Parameters [R] (0x2A04)
- Central Address Resolution [R] (0x2AA6)
Generic Attribute (0x1801)
- Service Changed [I] (0x2::q!iguration (0x2902)
Secure DFU Service (0xFE59)
- Buttonless DFU [I W] (8ec90003-f315-4f60-9fb8-838830daea50)
Client Characteristic Configuration (0x2902)
D	12:22:28.122	gatt.setCharacteristicNotification(00002a05-0000-1000-8000-00805f9b34fb, true)
I	12:22:28.162	Connection parameters updated (interval: 45.0ms, latency: 0, timeout: 5000ms)
I	12:22:32.624	Connection parameters updated (interval: 195.0ms, latency: 0, timeout: 4000ms)

Parents
  • Hi,

    In 15.3.0 we started using the MBR section to hold the bootloader start address instead of UICR.

    Are you using make flash and make flash_softdevice commands for flashing the application/bootloader ?

    If yes, see this post :

    flash_sdbl: default
    	@echo Flashing Softdevice and bootloader
    	mergehex -m $(OUTPUT_DIRECTORY)/nrf52832_xxaa_s132.hex $(SDK_ROOT)/components/softdevice/s132/hex/s132_nrf52_6.1.1_softdevice.hex -o sdbl.hex
    	nrfjprog --program sdbl.hex --chiperase -r
    

    Similar post for Keil can be found here.

  • Hi,

            Now I have encountered a similar problem. In SDK 15.3, the bootloader setting is used. But the program still can't directly execute the application. After that, I used the two instructions you said, but still did not solve the problem.

    best wish.

Reply Children
Related