Merge branch 'master' of github.com:mbedmicro/mbed

pull/213/head^2^2
Bogdan Marinescu 2014-03-18 10:54:50 +00:00
commit df09909ec4
1 changed files with 4 additions and 11 deletions

View File

@ -403,12 +403,10 @@ class UBLOX_C027(Target):
class NRF51822(Target):
EXPECTED_SOFTDEVICE = 's110_nrf51822_6.0.0_softdevice.hex'
OUTPUT_EXT = '.hex'
APPCODE_OFFSET = 0x14000
UICR_START = 0x10001000
UICR_END = 0x10001013
def __init__(self):
Target.__init__(self)
@ -441,14 +439,9 @@ class NRF51822(Target):
sdh = IntelHex(hexf)
sdh.merge(binh)
# Remove UICR section
del sdh[NRF51822.UICR_START:NRF51822.UICR_END+1]
with open(binf, "wb") as f:
sdh.tofile(f, format = 'bin')
#with open(binf.replace(".bin", ".hex"), "w") as f:
# sdh.tofile(f, format = 'hex')
with open(binf.replace(".bin", ".hex"), "w") as f:
sdh.tofile(f, format = 'hex')
class LPC1549(Target):
ONLINE_TOOLCHAIN = "uARM"