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.

  • 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?

  • Edvin ,

    The issue was solved . The issues is due to the bootloader in our board(DK) .We flashed debug version of SDK14.2 bootloader but the zip file contain non debug bootloder of SDK 15.3 that's why its not advertising .

    when we flashed non debug version bootloder of SDK 14.2 to DK its working fine.

    Thanks for your reply so far

Reply Children
No Data
Related