forked from najnesnaj/platformio-id107
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuploadnieuwboot
executable file
·7 lines (6 loc) · 1.17 KB
/
uploadnieuwboot
1
2
3
4
5
6
#nrfutil settings generate --family NRF51 --application .pioenvs/id107/firmware.hex --application-version 2 --bootloader-version 2 --bl-settings-version 1 bootloader_setting.hex
openocd -s /usr/share/openocd/scripts -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl -c init -c "reset init" -c halt -c "nrf51 mass_erase" -c "program nrf51422_xxac.hex verify" -c reset -c init
openocd -s /usr/share/openocd/scripts -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl -c init -c "reset init" -c halt -c "program s110_nrf51_8.0.0_softdevice.hex verify" -c reset -c init
openocd -s /usr/share/openocd/scripts -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl -c init -c "reset init" -c halt -c "program .pioenvs/id107/firmware.hex verify" -c reset -c init
#openocd -s /usr/share/openocd/scripts -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl -c init -c "reset init" -c halt -c "nrf51 mass_erase" -c "flash fillw 0x10001014 0x0003a000 0x01" -c "program nieuwapp.hex verify" -c reset -c init
#openocd -s /usr/share/openocd/scripts -f interface/stlink-v2.cfg -f target/nrf51_stlink.tcl -c init -c "reset init" -c halt -c "program nieuwapp.hex verify" -c reset -c exit