Hello,
I am writting a batch script to flash a PCA10056.I use it to flash the softdevice, the bootloader and my application.
The script works well and flash the device correctly.
The problem is, after reset, it is launching the bootloader.
I'd like to launch the application directly after reset and enter the bootloader only when I explicitely call it, using the right button. How can I do the trick?
I am using the SDK v13.0 and the blinky example as a test application.
Thanks for your help
regards,
Mickael
set nrfutil=[path to nrfutil] set nrfjprog=[path to nrfjprog] set appversion="0.0.1" set softDeviceID=0x96 set pathToSettings=settings_dfu.hex set pathToSoftdevice=s140_nrf52840_5.0.0-2.alpha_softdevice.hex set pathToBootloader=nrf52840_xxaa_s140.hex set pathToApp=nrf52840_xxaa.hex %nrfutil% settings generate --family NRF52 --application-version 0 --application-version-string %appversion% --bootloader-version %softDeviceID% --bl-settings-version 1 %pathToSettings% %nrfjprog% -f nrf52 --eraseall %nrfjprog% -f nrf52 --program %pathToSoftdevice% --verify %nrfjprog% -f nrf52 --program %pathToSettings% --verify %nrfjprog% -f nrf52 --program %pathToBootloader% --verify %nrfjprog% -f nrf52 --program %pathToApp% --verify %nrfjprog% -f nrf52 --reset pause