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

Remote DFU error: Insufficient Resources

Hi,

in DFU error occurred and showing as [DFU] Remote DFU error: Insufficient Resources in the log.

Chip Used NRF52810

package size is 53.8 KB

is there any restriction on file size? 

The same code is working when I flash using the DK board

.

nRF Connect, 2020-12-21
DfuTarg (D4:76:20:E4:E8:24)
V	12:41:57.760	Connecting to D4:76:20:E4:E8:24...
D	12:41:57.760	gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferred PHY = LE 1M)
D	12:41:58.028	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
D	12:41:58.043	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
I	12:41:58.043	Connected to D4:76:20:E4:E8:24
V	12:41:58.066	Discovering services...
D	12:41:58.066	gatt.discoverServices()
I	12:41:58.458	Connection parameters updated (interval: 15.0ms, latency: 0, timeout: 6000ms)
I	12:41:58.610	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
D	12:41:58.707	[Callback] Services discovered with status: 0
I	12:41:58.707	Services discovered
V	12:41:58.724	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)
Secure DFU Service (0xFE59)
- DFU Packet [WNR] (8ec90002-f315-4f60-9fb8-838830daea50)
- DFU Control Point [N W] (8ec90001-f315-4f60-9fb8-838830daea50)
   Client Characteristic Configuration (0x2902)
I	12:41:58.762	Connection parameters updated (interval: 15.0ms, latency: 0, timeout: 6000ms)
V	12:42:23.741	[DFU] DFU service started
V	12:42:23.741	[DFU] Opening file...
I	12:42:23.763	[DFU] Firmware file opened successfully
V	12:42:23.763	[DFU] Connecting to DFU target...
D	12:42:23.763	[DFU] gatt = device.connectGatt(autoConnect = false, TRANSPORT_LE, preferredPhy = LE_1M | LE_2M)
I	12:42:23.803	[DFU] Connected to D4:76:20:E4:E8:24
V	12:42:23.803	[DFU] Discovering services...
D	12:42:23.803	[DFU] gatt.discoverServices()
I	12:42:23.823	[DFU] Services discovered
D	12:42:23.837	[DFU] wait(1000)
V	12:42:24.834	[DFU] Requesting new MTU...
D	12:42:24.834	[DFU] gatt.requestMtu(517)
I	12:42:25.000	[DFU] MTU changed to: 247
V	12:42:25.001	[DFU] Enabling notifications for 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:25.001	[DFU] gatt.setCharacteristicNotification(8ec90001-f315-4f60-9fb8-838830daea50, true)
D	12:42:25.005	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
I	12:42:25.042	[DFU] Data written to descr.8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-00
V	12:42:25.042	[DFU] Notifications enabled for 8ec90001-f315-4f60-9fb8-838830daea50
A	12:42:25.042	[DFU] Notifications enabled
D	12:42:25.042	[DFU] wait(1000)
V	12:42:26.043	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:26.043	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	12:42:26.078	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-02-00-00-00-00-00-00-00-00-00-00
I	12:42:26.080	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-02-00-00-00-00-00-00-00-00-00-00
A	12:42:26.080	[DFU] Command object info received (Max size = 512, Offset = 0, CRC = 00000000)
V	12:42:26.080	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:26.080	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	12:42:26.108	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 02-00-00
I	12:42:26.108	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01
A	12:42:26.108	[DFU] Packet Receipt Notif disabled (Op Code = 2, Value = 0)
V	12:42:26.108	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:26.109	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	12:42:26.138	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-01-8D-00-00-00
I	12:42:26.138	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
A	12:42:26.139	[DFU] Command object created
V	12:42:26.139	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
D	12:42:26.139	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
I	12:42:26.145	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 12-8A-01-0A-44-08-01-12-40-08-01-10-34-1A-02-CD-01-20-00-28-00-30-00-38-A8-A9-03-42-24-08-03-12-20-D1-BF-DA-3F-32-02-B8-C9-2B-0B-68-F9-38-C1-A8-BB-FE-3A-54-DE-6D-52-09-6B-31-2C-2A-47-A0-5E-6B-34-48-00-52-04-08-01-12-00-10-00-1A-40-E5-C2-50-68-05-85-BC-D2-82-FF-45-C1-AD-12-97-43-9C-8F-C5-0C-0D-75-E6-56-C9-DF-E7-38-2E-6F-91-83-4C-9F-2B-8B-36-08-05-7A-AE-8A-00-64-10-BE-1C-EF-5C-C6-C6-83-DB-F0-F3-D6-87-16-DE-10-36-D2-45-07
A	12:42:26.145	[DFU] Command object sent (CRC = CAC77AAD)
V	12:42:26.146	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:26.146	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	12:42:26.198	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 03
I	12:42:26.199	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-8D-00-00-00-AD-7A-C7-CA
A	12:42:26.200	[DFU] Checksum received (Offset = 141, CRC = CAC77AAD)
V	12:42:26.200	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
D	12:42:26.200	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
I	12:42:26.226	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04
I	12:42:26.392	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-04
E	12:42:26.393	[DFU] Remote DFU error: INSUFFICIENT RESOURCES
V	12:42:26.393	[DFU] Disconnecting...
D	12:42:26.412	[DFU] gatt.disconnect()
I	12:42:26.419	[DFU] Disconnected
D	12:42:26.421	[DFU] gatt.refresh() (hidden)
D	12:42:26.431	[DFU] gatt.disconnect()
D	12:42:26.434	[DFU] gatt.close()
D	12:42:26.435	[DFU] wait(600)
I	12:42:26.563	Connection parameters updated (interval: 7.5ms, latency: 0, timeout: 5000ms)
I	12:42:26.752	Connection parameters updated (interval: 15.0ms, latency: 0, timeout: 6000ms)
D	12:44:32.132	[Callback] Connection state changed with status: 8 and new state: DISCONNECTED (0)
E	12:44:32.132	Error 8 (0x8): GATT CONN TIMEOUT
I	12:44:32.132	Disconnected
D	12:44:32.197	[Broadcast] Action received: android.bluetooth.device.action.ACL_DISCONNECTED

Parents
  • Hi Surya, 

    When you receive  INSUFFICIENT RESOURCES, it's most likely the image you are planning to update is bigger than what the bootloader can accept. 
    You can have a look at the log in the bootloader to find more information. 
    What 's the image size you are planning to update ? You may want to look for the .bin file not the .hex file. 

    If you don't allow dual bank DFU, there would be very limited space left for the application. Please check the size of the softdevice, bootloader and application. 

    Also if you have configured any application data pages to be reserved that would also affect the DFU file size capability. 

  • Hi Hung Bui,

    I have met the same problem.You said

    If you don't allow dual bank DFU, there would be very limited space left for the application. Please check the size of the softdevice, bootloader and application.

    Isn't that the space of "Single Bank" larger than "Dual Bank" for the application?

    And I have solved this probblem few days ago, cuz there is 3*PAGE fds above the end address of app.For nRF52810,the space of app is no more than 52k if the space of softdevice is 96k(0x18000).

Reply
  • Hi Hung Bui,

    I have met the same problem.You said

    If you don't allow dual bank DFU, there would be very limited space left for the application. Please check the size of the softdevice, bootloader and application.

    Isn't that the space of "Single Bank" larger than "Dual Bank" for the application?

    And I have solved this probblem few days ago, cuz there is 3*PAGE fds above the end address of app.For nRF52810,the space of app is no more than 52k if the space of softdevice is 96k(0x18000).

Children
No Data
Related