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

DOUBT IN ZIP FILE GENERATION FOR OTA -DFU.

HI ,

  I need the nrfutil commands used to generate the following zip file

  1. softdevice only
  2. bootloader only
  3. softdevice + bootloader  
  4. softdevice +bootloader+application 

If you can please attach the  command used for generating each zip file in the reply ,please don't provide any link because it  time consuming. 

please answer to 1,2,3 and 4 only.

Parents
  • As Hadi says, you need to add the arguments that are required to generate the DFU image.

    These are common:

    nrfutil pkg generate --sd-req 0xXX --hw-version 52 --key-file private.key "DFU_image_name".zip

    Then if your image contains an application, you need to add:

    --application application.hex --application-version N

    If your image contains a bootloader, you need to add:

    --bootloader bootloader.hex --bootloader-version N

    if your image conatins a softdevice, you need to add: 

    --softdevice softdevice.hex --sd-id 0xYY

    The links that Hadi linked to describes it quite well. Also, if you type "nrfutil pkg generate --help" you will see a description of all possible input parameters.

  • hi edvin ,

     Conisder the below condition .

    • We have a development kit of NRF52832(512 KB FLASH).
    • we flashed the softdevice(s132_nrf52_5.0.0_softdevice.hex ) and bootloader (secure_dfu_ble_s132_pca10040_debug.hex) into it .
    • i.e both softdevice and bootloader is from sdk 14.2.
    • After flashing SD+BL to DK the DK is advertising as "DfuTrag".
    • Now we need to to update a zip file through OTA containing softdevice and bootloder  from sdk 15.3 into it . 

    Doubts

    1. What is nrfutil command for generating a zip file containing SD and BL(sdk 15.3) at these condition. Mainly i need to known what is value of "--sd-req and --sd-id"
    2. These is the Softdevice hex "s132_nrf52_6.1.1_softdevice. hex" and these is the bootloader hex "secure_bootloader_ble_s132_pca10040.hex"  from SDK 15.3. if you need its hex   please ask.

      we you can please reply the command  for generating SD+BL zip file with all the condition mentioned above.

  • NANDHU said:
    Is the DK advertise as "DfuTrag " from new bootloder which is updated through OTA or not.

     Yes. The "DfuTarg" is from the new bootlaoder. You can confirm this by changing the advertising name of the bootloader if you open the bootloader project from SDK15.3.0, and go into sdk_config.h, and look for:

    #define NRF_DFU_BLE_ADV_NAME "DfuTarg"

    Change it to 

    #define NRF_DFU_BLE_ADV_NAME "Dfu15"

    Or something else (not too long). 

  • That is the problem man . Its not advertising . 

    How can i debug the code after OTA-DFU i don't known it.

  • What changes did you do to your bootlaoder? Try to unzip the SDK again, so that you know that you didn't change any of the settings. 

  • I will send you the zip take a look at by your self if you can .I will also unzip it.

    15.3sd+bootloader_sd.zip

    And look the nrfutil command below for generating zip

    nrfutil pkg generate --bootloader secure_bootloader_ble_s132_pca10040.hex --bootloader-version 2 --hw-version 52 --sd-req 0x9D --sd-id 0xB7 --softdevice s132_nrf52_6.1.1_softdevice.hex --key-file my_secret_private_key.pem 15.3sd+bootloader_sd.zip

    Look the below screen short these what i saw when i unziped

  • Does it advertise if you just program the bootloader and softdevice manually, using nrfjprog?

Reply Children
Related