This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Zip file failed to upload for ble_secure project

Hello, I am working on ota ble_secure project. I have created a zip file which is the last step and copied this file to my smart phone so that I can upload it using nrf toolbox. The upload fails. I am not sure which files to include to create a zip package. I am attaching my zip package as well as the files that I used to merge.app_dfu_package.zip. The hex file is nrf52832_xxaa_s132.hex.

The log file of error is log.txt

Sdk which I have is www.nordicsemi.com/.../nRF5-SDK

I am using this project in sdk sdknordic\examples\dfu\bootloader_secure\pca10040

Left side is new sdk and right side is old sdk. bootloader.PNG

Log file New Text Document.txt

New log file errorlog.txt

  • Could you point me where you found "nrf51latest13alpha SDK" ? There is nothing like that from Nordic.

    If you only update the application, you only need the application .hex file. This find you can find in the _build folder after you compiled your project.

    After that you use "nrfutil.exe dfu genpkg" to generate the .zip file. For example if the hex is yourapplication.hex the script can be:

    nrfutil.exe dfu genpkg app.zip --application yourapplication.hex --application-version 0xffff --dev-revision 0xffff --dev-type 0xffff --sd-req 0xfffe
    
  • Hello Hung, I dont remember the source but I have downloaded new sdk nRF5_SDK_13.0.0-1.alpha_055eef3 from nordic website. I have tried the commands suggested by you. It gave me error Invalid crc error. Than I followed the link devzone.nordicsemi.com/.../ and github.com/.../pc-nrfutil

    After this I tried with the new zip file but now it gives me error unknown (8202) error.

    Thanks, Shailav

  • Hi Shailav,

    You are using SDK v13, then you need to follow instruction in SDK v13. In SDK v13 it uses secure bootloader not the legacy bootloader so what I suggested won't work.

    You should follow this intruction.

    (Ignore step 4 in the "Testing" section. )

  • Hello Hung, This is the command that I prepared following the instructions suggested by you.

    nrfutil pkg generate --application C:\Users\Ambimat\Desktop\sdknordic\examples\dfu\bootloader_secure\pca10040\arm5_no_packs\_build\nrf52832_xxaa_s132.hex --application-version 0xff --hw-version 52 --sd-req 0x8C --key-file C:\Users\Ambimat\Desktop\sdknordic\examples\dfu\bootloader_secure\pca10040\arm5_no_packs\_build\my_secret_private_key.pem app.zip
    

    Now my challenge is where will I find the bootloader.hex file? I think I need to add this --bootloader image: an image of a bootloader and the version of the bootloader. Without the bootloader I created zip file and I am getting error as DFU file not found. Thanks, Shailav

  • Hello, I am following this link devzone.nordicsemi.com/.../ Do you recommend me to use this? I will make changes according to my sdk. I need following files according to this link app_valid_setting_apply.hex ble_app_hrs_dfu.hex bootloader.hex s110_nrf51822_7.0.0_softdevice.hex

    Can you tell me where will I find all the files?

    Do I need to merge the files as described in this link? Thanks, Shailav

Related