This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nrf52840 app and bootloader merge. the program did not jump to application execution.

I use sdk15.2.
bootloader nRF5_SDK_15.2.0_9412b96\examples\dfu\secure_bootloader\pca10056_ble_debug.
Application nRF5_SDK_15.2.0_9412b96\examples\ble_peripheral\ble_app_buttonless_dfu.
step1:
nrfutil keys generate priv.pem
nrfutil keys display --key pk --format code --out_file dfu_public_key.c priv.pem
copy dfu_public_key.c to nRF5_SDK_15.2.0_9412b96\examples\dfu
step2:
Rbuil pca10056_ble_debug project.get bootloader.hex.
step3:
Rbuil ble_app_buttonless_dfu project.get app.hex.
step4:
nrfutil settings generate --family NRF52 --application nrf52840_app.hex --application-version 3 --bootloader-version 2 --bl-settings-version 1 settings_52840.hex
mergehex.exe -m s140_nrf52_6.1.0_softdevice.hex nrf52840_app.hex -o sd_and_app_52840.hex 
mergehex.exe -m sd_and_app_52840.hex  nrf52840_boot.hex -o sd_and_app_and_boot_52840.hex
mergehex.exe -m sd_and_app_and_boot_52840.hex settings_52840.hex -o sd_app_boot_setting_complete_52840.hex
step5:
nrfjprog.exe --family NRF52 --eraseall
nrfjprog.exe  --family NRF52 --program sd_app_boot_setting_complete_52840.hex
nrfjprog.exe  --family NRF52 --verify sd_app_boot_setting_complete_52840.hex
nrfjprog.exe  --reset
over.
But the program did not jump to app execution. (This method 52832 can run.)

Related