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

SDK15.2 52810 OTA ERROR

nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_bootloader\pca10040e_ble\arm5_no_packs

nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_buttonless_dfu\pca10040e\s112\arm5_no_packs

I used the above two example OTA 52810 to start OTA error,please see the picture for details.

Parents
  • HI tongh, 

    Can you please post the exact steps to reproduce this behaviour,? 

    Also did you generate your own private-public keys and firmware packets or did you use the debug key and the test images in the SDK ? if you generated them your self, which nrfutil version did you use and which commands?

    Are you using a custom nRF52810 board or are you using nRF52 DKs`?

    Best regards

    Bjørn 

Reply
  • HI tongh, 

    Can you please post the exact steps to reproduce this behaviour,? 

    Also did you generate your own private-public keys and firmware packets or did you use the debug key and the test images in the SDK ? if you generated them your self, which nrfutil version did you use and which commands?

    Are you using a custom nRF52810 board or are you using nRF52 DKs`?

    Best regards

    Bjørn 

Children
  • generate private-public kes, nrfutil 4.0.0

    1,nrfutil.exe keys generate private.pem

    2,nrfutil.exe keys display --key pk --format code private.pem --out_file public_key.c

     3,nrfutil.exe settings generate --family NRF52 --application nrf52810_xxaa_app.hex --application-version 3 --bootloader-       version 2 --bl-settings-version 1 bootloader_settings.hex

    4,zip file   nrfutil pkg generate --hw-version 52810 --sd-req 0x0b --application-version 0xff --application nrf52810_xxaa_app.hex --key-file private.pem nrf52810_xxaa_app.zip

  • Are you running the example on a custom nRF52810 board or a nRF52 DK?

    Could you post the entire log from nRF Connect in the case?

  • I have a nrf52810 board,

    nRF Connect, 2018-11-17
    DfuTarg (FA:D3:86:18:CD:40)
    V	09:33:08.023	Connecting to FA:D3:86:18:CD:40...
    D	09:33:08.023	gatt = device.connectGatt(autoConnect = false)
    D	09:33:08.272	[Callback] Connection state changed with status: 0 and new state: CONNECTED (2)
    I	09:33:08.272	Connected to FA:D3:86:18:CD:40
    D	09:33:08.272	wait(600ms)
    D	09:33:08.289	[Broadcast] Action received: android.bluetooth.device.action.ACL_CONNECTED
    V	09:33:08.882	Discovering services...
    D	09:33:08.882	gatt.discoverServices()
    D	09:33:08.932	[Callback] Services discovered with status: 0
    I	09:33:08.934	Services discovered
    V	09:33:08.966	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)
    V	09:33:15.685	[DFU] DFU service started
    V	09:33:15.686	[DFU] Opening file...
    I	09:33:15.727	[DFU] Image file opened (49356 bytes in total)
    D	09:33:15.727	[DFU] wait(1000)
    D	09:33:16.747	[DFU] wait(1000)
    V	09:33:17.735	[DFU] Connecting to DFU target...
    D	09:33:17.735	[DFU] gatt = device.connectGatt(autoConnect = false)
    I	09:33:17.849	[DFU] Connected to FA:D3:86:18:CD:40
    V	09:33:17.849	[DFU] Discovering services...
    D	09:33:17.849	[DFU] gatt.discoverServices()
    I	09:33:18.119	[DFU] Services discovered
    D	09:33:18.142	[DFU] wait(1000)
    V	09:33:19.151	[DFU] Enabling notifications for 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:19.151	[DFU] gatt.setCharacteristicNotification(8ec90001-f315-4f60-9fb8-838830daea50, true)
    D	09:33:19.151	[DFU] gatt.writeDescriptor(00002902-0000-1000-8000-00805f9b34fb, value=0x01-00)
    I	09:33:19.185	[DFU] Data written to descr.8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-00
    V	09:33:19.185	[DFU] Notifications enabled for 8ec90001-f315-4f60-9fb8-838830daea50
    A	09:33:19.185	[DFU] Notifications enabled
    D	09:33:19.185	[DFU] wait(1000)
    V	09:33:20.201	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.201	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.248	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 06-01
    I	09:33:20.248	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-01-00-00-00-00-00-00-00-00-00-00
    A	09:33:20.248	[DFU] Command object info received (Max size = 256, Offset = 0, CRC = 00000000)
    V	09:33:20.248	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.248	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.248	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 02-00-00
    I	09:33:20.248	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-02-01
    A	09:33:20.248	[DFU] Packet Receipt Notif disabled (Op Code = 2, Value = 0)
    V	09:33:20.248	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.248	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.279	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-01-88-00-00-00
    I	09:33:20.279	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
    A	09:33:20.279	[DFU] Command object created
    V	09:33:20.279	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.279	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.279	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 12-85-01-0A-3F-08-01-12-3B-08-FF-01-10-34-1A-02-B0-01-20-00
    V	09:33:20.279	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.279	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.279	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 28-00-30-00-38-CC-81-03-42-24-08-03-12-20-7B-3B-5C-05-84-D3
    V	09:33:20.279	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.279	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.296	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 0F-49-E0-63-CD-D1-A6-3A-5C-7A-84-38-AB-86-6E-FF-D6-AC-F3-A7
    V	09:33:20.296	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.296	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.296	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 96-EC-91-3B-E1-99-48-00-10-00-1A-40-E2-40-73-4F-96-BF-A9-9C
    V	09:33:20.296	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.296	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.296	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): CB-F9-26-DA-2C-63-E9-74-8B-B7-0D-E9-70-FC-AB-9E-AE-F5-A6-01
    V	09:33:20.296	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.296	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.296	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): D7-DC-C2-B0-3B-EB-9E-12-5A-75-86-EA-6C-AB-00-57-18-CE-CC-05
    V	09:33:20.296	[DFU] Writing to characteristic 8ec90002-f315-4f60-9fb8-838830daea50
    D	09:33:20.296	[DFU] gatt.writeCharacteristic(8ec90002-f315-4f60-9fb8-838830daea50)
    I	09:33:20.296	[DFU] Data written to 8ec90002-f315-4f60-9fb8-838830daea50, value (0x): 7A-AA-BC-88-35-0F-31-06-3B-C5-51-37-49-F4-7E-C9
    A	09:33:20.296	[DFU] Command object sent (CRC = EB844174)
    V	09:33:20.296	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.296	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.331	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 03
    I	09:33:20.331	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-88-00-00-00-74-41-84-EB
    A	09:33:20.331	[DFU] Checksum received (Offset = 136, CRC = EB844174)
    V	09:33:20.331	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.331	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.366	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 04
    I	09:33:20.515	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-04-01
    A	09:33:20.515	[DFU] Command object executed
    V	09:33:20.515	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.515	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.532	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 06-02
    I	09:33:20.532	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-06-01-00-10-00-00-00-00-00-00-00-00-00-00
    A	09:33:20.532	[DFU] Data object info received (Max size = 4096, Offset = 0, CRC = 00000000)
    V	09:33:20.579	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.580	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:20.670	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-02-00-10-00-00
    I	09:33:20.670	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-01
    A	09:33:20.670	[DFU] Data object (1/13) created
    A	09:33:20.670	[DFU] Uploading firmware...
    V	09:33:20.670	[DFU] Sending firmware to characteristic 8ec90002-f315-4f60-9fb8-838830daea50...
    V	09:33:20.966	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:20.966	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:21.764	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 03
    I	09:33:21.764	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-03-01-FC-0E-00-00-13-6E-17-76
    A	09:33:21.764	[DFU] Checksum received (Offset = 3836, CRC = 76176E13)
    W	09:33:21.764	[DFU] CRC does not match! Expected D10534AD but found 76176E13. Retrying...(2/3)
    V	09:33:21.820	[DFU] Writing to characteristic 8ec90001-f315-4f60-9fb8-838830daea50
    D	09:33:21.820	[DFU] gatt.writeCharacteristic(8ec90001-f315-4f60-9fb8-838830daea50)
    I	09:33:21.820	[DFU] Data written to 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 01-02-04-11-00-00
    I	09:33:21.820	[DFU] Notification received from 8ec90001-f315-4f60-9fb8-838830daea50, value (0x): 60-01-03
    E	09:33:21.820	[DFU] Remote DFU error: REMOTE DFU INVALID PARAM
    V	09:33:21.820	[DFU] Disconnecting...
    D	09:33:21.821	[DFU] gatt.disconnect()
    I	09:33:21.821	[DFU] Disconnected
    D	09:33:21.821	[DFU] gatt.refresh() (hidden)
    D	09:33:21.821	[DFU] gatt.close()
    D	09:33:21.821	[DFU] wait(600)
    

  • Have you modified the bootloader or the ble_app_buttonless example according to the following section in the SDK doc?

    Do you see the issue when you're using the test images and the debug public in the SDK?

  • The nrf connect version is too low,I I used version 4.1, 4.2 version ok

Related