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
  • We need to check why it doesn't work with your code. A sniffer trace would be very useful.

    I assume that you verified your application works perfectly without the bootloader with the same softdevice.

    in you sequence, the only difference is the hex file. And the bootloader shouldn't have any problem updating different hex.

    There is a chance that your application is too big, have you checked the size of your application ?

Reply
  • We need to check why it doesn't work with your code. A sniffer trace would be very useful.

    I assume that you verified your application works perfectly without the bootloader with the same softdevice.

    in you sequence, the only difference is the hex file. And the bootloader shouldn't have any problem updating different hex.

    There is a chance that your application is too big, have you checked the size of your application ?

Children
No Data
Related