clean up unused files
This commit is contained in:
1 parent
71fe451fa1
commit
6b182ddb74
2 files changed
+1
-38
No files matched your search
@@ -1,37 +0,0 @@
|
||||
import sys
|
||||
import platform
|
||||
import os
|
||||
import os.path
|
||||
from pynrfjprog import API, Hex
|
||||
|
||||
# Command Line option
|
||||
if (len(sys.argv) < 2):
|
||||
print "Burn bootloader with Softdevice hex using JLink"
|
||||
print ("Usage: python %s <hexfile>")%(sys.argv[0])
|
||||
sys.exit()
|
||||
|
||||
hexfile = sys.argv[1]
|
||||
|
||||
api = API.API('NRF52')
|
||||
api.open()
|
||||
api.connect_to_emu_without_snr()
|
||||
|
||||
print 'Erasing Feather'
|
||||
api.erase_all()
|
||||
|
||||
print 'Writing bootloader'
|
||||
|
||||
# Convert hex to array
|
||||
hexdata = Hex.Hex(hexfile)
|
||||
|
||||
# Write data to MCU
|
||||
for seg in hexdata:
|
||||
api.write(seg.address, seg.data, True)
|
||||
|
||||
# Reset device and run
|
||||
api.sys_reset()
|
||||
api.go()
|
||||
|
||||
api.close()
|
||||
|
||||
print 'Done'
|
||||
@@ -1,6 +1,6 @@
|
||||
/**************************************************************************/
|
||||
/*!
|
||||
@file at_cmd_hwpin.c
|
||||
@file nrfbintool.c
|
||||
@author hathach
|
||||
|
||||
@section LICENSE
|
||||
|
||||
Reference in new issue
Block a user