mkdir files
make -j9
make -j9 -C ..\..\..\..\peripheral\blinky\pca10056\mbr\armgcc
make -j9 -C ..\..\..\..\ble_peripheral\ble_app_uart\pca10056\s140\armgcc 
del files\ble_app_uart.hex
copy ..\..\..\..\ble_peripheral\ble_app_uart\pca10056\s140\armgcc\_build\nrf52840_xxaa.hex files\ble_app_uart.hex

nrfjprog -e --snr 111111111
nrfjprog --program ..\..\..\..\..\components\softdevice\s140\hex\s140_nrf52_7.0.1_softdevice.hex --verify  --snr 111111111
nrfjprog --program _build\nrf52840_xxaa_mbr.hex --verify --snr 111111111
nrfjprog --reset --snr 111111111

nrfutil pkg generate --application files\ble_app_uart.hex --application-version 2 --hw-version 52 --sd-req 0xCA --key-file ..\..\..\private.key --bootloader _build\nrf52840_xxaa_mbr.hex --bootloader-version 2 --softdevice ..\..\..\..\..\components\softdevice\s140\hex\s140_nrf52_7.0.1_softdevice.hex --sd-id 0xCA files\dfu_test2.zip
TIMEOUT 5
nrfutil dfu serial -pkg files\dfu_test2.zip -p COM52 -fc 1 -b 115200 -snr 111111111