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

for DFU secure

Hi. I'm using nRF51822AC, SDK12.2.0, S130 v2.0.1.

I made boot secure and application as below. boot.hex, application.hex

Then I made setting file as below.

nrfutil settings generate --family NRF51 --application application.hex --application-version 1 --bootloader-version 1 --bl-settings-version 1 bootloader_settings.hex

Then I merged setting file, application, boot as below.

mergehex -m bootloader_settings.hex application.hex boot.hex -o nrf_bootloader_and_app.hex

Then I downloaded Softdevice and nrf_bootloader_and_app.hex using nRFgo studio.

Then I made image file for DFU as below.(application.hex is same as before)

nrfutil pkg generate --hw-version 51 --sd-req 0x87 --application-version 0x13 --application application.hex --key-file priv.pem app_dfu_package.zip

Then I try DFU, it works well.

If I apply new application hex file as below.

nrfutil pkg generate --hw-version 51 --sd-req 0x87 --application-version 0x13 --application new_application.hex --key-file priv.pem app_dfu_package.zip

It doesn't work.

What could be the problem?

Ps. application.hex and new_application.hex files are just application hex file excluding Soft device and boot.

I need your help.

Parents
  • Yes. I can update application.hex multiple times.

    It makes connection and then no progress bar for downloading on smartphone.

    I just added some code for test such as dubug routine. new_application code is from application code.

    Do you think my sequence i did has no problem?

Reply
  • Yes. I can update application.hex multiple times.

    It makes connection and then no progress bar for downloading on smartphone.

    I just added some code for test such as dubug routine. new_application code is from application code.

    Do you think my sequence i did has no problem?

Children
No Data
Related