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

Remote DFU: Operation Failed Error in Secure OTA

Hi,

I am trying to secure OTA in nrf51822 board.

For that trying to build bootloader file available in SDK 12.2.0 version at location nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs. But it is building perfectly and give me error of micro_ecc_lib_nrf51.lib file not found error.

i have already installed 4.9-2015-q3-update of the GCC compiler toolchain for ARM and put uECC.h file in external/micro-ecc/micro-ecc file.

  • Hi Nilesh, you need to compile the ECC library. please follow my tutorial here at step B1.

  • Hello Sir,

    Thank you for your valuable support to me.

    I have resolved micro_ecc_lib_nrf51.lib error. Now i am trying to update ble_app_uart file available in SDk12.2.0 through OTA in my nordic board. For that, i am following below steps:

    1). Generate private key using nrfutil.exe keys generate private.key command
    2). generate public_key.c file using private.key by nrfutil keys display --key pk --format code private.key --out_file public_key.c command.
    3). Open nRF5_SDK_12.2.0_f012efa\examples\dfu\bootloader_secure\pca10028_debug\arm5_no_packs file in keil and remove older dfu_public_key.c file and replace new public_key.c file.
    4). Then build program successfully and load into my board. Now my board emits itself nrftarg.
    5). Open nRF5_SDK_12.2.0_f012efa\examples\ble_peripheral\ble_app_uart\pca10028\s130\arm5_no_packs program and build succssfully then copy .hex file from _build folder and paste in same folder where nrfutil.exe and private.key file is available.
    6). Now generate DFu page using nrfutil pkg generate --hw-version 51 --application-version 1 --application nrf51422_xxac.hex --sd-req 0x87 --key-file private.key app_dfu_package.zip
    7). then copy this zip in my app and follow update step in nrfconnect app.
    

    But it's not done successfully. it is just start like starting DFU then Disconnecting.

    Please help me.

  • Your steps seems correct. Please try to find the DFU log in nRFLogger app, or try to enable Logging inside bootloader. Which app did you use to update ? make sure you updated the app to latest version. Please try using nRFConnect.

    Or you can capture a sniffer trace.

  • Dear Sir,

    As per your Suggestion, i am trying to find out my problem using nRF Logger application. In that i found Remote DFU Operation failed error. I have airedy install latest version of the nRFconnect Application.

    I am using external tool for flash programming in keil. In that, Command is nrfjprog.exe and Arguments is --reset --program "#H".

    My internal Ram setting for bootloader: [Read/Only Memory Areas: IROM1- start: 0x3AC00 Size: 0x500][Read/write Memory Areas: IRAM1- start: 0x20002C00 size: 0x5380]

    As of now i am trying to simple example program which is available in SDK at examples\ble_peripheral\experimental_ble_app_buttonless_dfu\pca10028\s130\arm5_no_packs.

    My internal Ram setting for Program: [Read/Only Memory Areas: IROM1- start: 0x1B00 Size: 0x25000][Read/write Memory Areas: IRAM1- start: 0x20001FE8 size: 0x6018]

    Please suggest me.

  • Please post your log with nRFLogger, we need to know what cause Remote DFU operation failed.

    Please try to test with unmodified application example and unmodified bootloader, except for the key.

Related