nrf5-zephyr: add flash_nrf51_pca10028.sh and flash_nrf52_pca10040

This commit is contained in:
Matthias Ringwald 2016-11-10 16:40:50 +01:00
parent 5777861b2b
commit 97db27723d
3 changed files with 11 additions and 5 deletions

View File

@ -72,11 +72,9 @@ for file in os.listdir(examples_embedded):
if not os.path.exists(apps_folder):
os.makedirs(apps_folder)
# copy nrf5.conf
shutil.copyfile(script_path + '/nrf5.conf', apps_folder + '/nrf5.conf')
# copy Makefile
shutil.copyfile(script_path + '/Makefile', apps_folder + 'Makefile')
# copy files
for item in ['nrf5.conf', 'flash_nrf51_pca10028.sh', 'flash_nrf52_pca10040.sh', 'Makefile']:
shutil.copyfile(script_path + '/' + item, apps_folder + '/' + item)
# create src folder
src_folder = apps_folder + "src/"

View File

@ -0,0 +1,4 @@
#!/bin/sh
nrfjprog --eraseall -f nrf51
nrfjprog --program outdir/nrf51_pca10028/zephyr.hex -f nrf51
nrfjprog --reset -f nrf51

View File

@ -0,0 +1,4 @@
#!/bin/sh
nrfjprog --eraseall -f nrf52
nrfjprog --program outdir/nrf52_pca10040/zephyr.hex -f nrf52
nrfjprog --reset -f nrf52