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.hex

mergehex --merge ./dfu_readme/s132_nrf52_7.0.1_softdevice.hex ./dfu_readme/central_and_peripheral_bootloader.hex --output ./dfu_readme/sd_boot.hex

mergehex --merge ./dfu_readme/app_setting.hex ./dfu_readme/sd_boot.hex --output ./dfu_readme/setting_sd_boot.hex

mergehex --merge ./pca10040/s132/arm5_no_packs/_build/nrf52832_xxaa.hex ./dfu_readme/app_setting.hex ./dfu_readme/sd_boot.hex --output ./dfu_readme/app_setting_sd_boot.hex

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


