cd ..

cd ..

cd ..

nrfjprog -f nrf52 --erasepage 0x0-0x80000

nrfjprog --family nRF52 --eraseall

nrfutil settings generate --family NRF52 --application ./pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex  --application-version 1 --bootloader-version 1 --bl-settings-version 2 ./dfu_readme/app_setting_cp.hex

mergehex --merge ./dfu_readme/app_setting_cp.hex ./dfu_readme/sd_boot_cp.hex --output ./dfu_readme/setting_sd_boot_cp.hex

mergehex --merge ./pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex ./dfu_readme/app_setting_cp.hex ./dfu_readme/sd_boot_cp.hex --output ./dfu_readme/app_setting_sd_boot_cp.hex

nrfjprog --program ./dfu_readme/app_setting_sd_boot_cp.hex -f nrf52 --reset
