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

  • Hello, I have old nrf51 sdk and new sdk as I mentioned in my previous post. When I compared both I found out bootloader zip file is missing in the new sdk. I am attaching the image above. Lest side is the new sdk and right side is old sdk. Thanks

  • Hi Shailav,

    No, please do it the normal way first, no combining hex, no updating multiple images (application+bootloader+softdevice , etc).

    What you need to do is:

    1. Flash the softdevice

    2. Build and flash the bootloader. Make sure the bootloader working and advertising as "DFUTarg"

    3. Generate the .zip file as you already did

    4. Do DFU OTA with the .zip file and verify that your application running on the device.

  • Hello Hung, Can you write the steps for 1, 2 , 3 and 4?

    1. What I did is I flashed the soft device using nrfgostudio with file s132_nrf52_2.0.1_softdevice.hex.

    2. How to build and flash bootlaoder? I dont have bootloader file.

    3. The command i used to generate .zip file is nrfutil pkg generate --debug-mode --application dfu_app.hex --key-file ../my_secret_private_key.pem app_package.zip IS this right?

    4. Dfu ota will do through nrf app.

    Can you please explain step 2 by trying at your end with screen shot. I had gone through links on infocenter.nordicsemi.com/index.jsp and the links inside this but did not understand. Thanks, Shailav

  • @shailav: Have you downloaded the SDK ? ? The bootloader code is located at \examples\dfu\bootloader_secure

    You already mentioned it in your initial question "I am using this project in sdk sdknordic\examples\dfu\bootloader_secure" , I don't understand why you said you can't find it and can't compile it.

  • Hung, I have the bootloader prject but I got confuse with the bottloader.hex file. Okay I did as you suggested. It is advertising as "DFUTarg" . To be more clear I compiled the code secure_dfu_secure_dfu_ble_s132_pca10040 and clicked the load like I do in other projects. Its advertising with the name DFUTarg. Now should I generate the hex file as per the commands I mentioned above?

Related