From 298f5cabd30ef8dd7229992f8f57f60c7a3c997f Mon Sep 17 00:00:00 2001 From: Emilio Monti Date: Tue, 18 Mar 2014 10:16:16 +0000 Subject: [PATCH] Use hex format for NRF51822 target --- workspace_tools/targets.py | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/workspace_tools/targets.py b/workspace_tools/targets.py index 5eff85c3c2..f1ebad9b3a 100644 --- a/workspace_tools/targets.py +++ b/workspace_tools/targets.py @@ -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"