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.