mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 13:20:39 +00:00
nrf5-zephyr: add flash_nrf51_pca10028.sh and flash_nrf52_pca10040
This commit is contained in:
parent
5777861b2b
commit
97db27723d
@ -72,11 +72,9 @@ for file in os.listdir(examples_embedded):
|
|||||||
if not os.path.exists(apps_folder):
|
if not os.path.exists(apps_folder):
|
||||||
os.makedirs(apps_folder)
|
os.makedirs(apps_folder)
|
||||||
|
|
||||||
# copy nrf5.conf
|
# copy files
|
||||||
shutil.copyfile(script_path + '/nrf5.conf', apps_folder + '/nrf5.conf')
|
for item in ['nrf5.conf', 'flash_nrf51_pca10028.sh', 'flash_nrf52_pca10040.sh', 'Makefile']:
|
||||||
|
shutil.copyfile(script_path + '/' + item, apps_folder + '/' + item)
|
||||||
# copy Makefile
|
|
||||||
shutil.copyfile(script_path + '/Makefile', apps_folder + 'Makefile')
|
|
||||||
|
|
||||||
# create src folder
|
# create src folder
|
||||||
src_folder = apps_folder + "src/"
|
src_folder = apps_folder + "src/"
|
||||||
|
4
port/nrf5-zephyr/flash_nrf51_pca10028.sh
Executable file
4
port/nrf5-zephyr/flash_nrf51_pca10028.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
nrfjprog --eraseall -f nrf51
|
||||||
|
nrfjprog --program outdir/nrf51_pca10028/zephyr.hex -f nrf51
|
||||||
|
nrfjprog --reset -f nrf51
|
4
port/nrf5-zephyr/flash_nrf52_pca10040.sh
Executable file
4
port/nrf5-zephyr/flash_nrf52_pca10040.sh
Executable file
@ -0,0 +1,4 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
nrfjprog --eraseall -f nrf52
|
||||||
|
nrfjprog --program outdir/nrf52_pca10040/zephyr.hex -f nrf52
|
||||||
|
nrfjprog --reset -f nrf52
|
Loading…
x
Reference in New Issue
Block a user