Allow hex BL, SD and application merging

pull/7263/head
Jimmy Brisson 2018-06-19 09:27:09 -05:00
parent fcfe6e1c43
commit 4e6b830c91
1 changed files with 2 additions and 0 deletions

View File

@ -513,11 +513,13 @@ class MCU_NRF51Code(object):
t_self.notify.debug("Merge SoftDevice file %s"
% softdevice_and_offset_entry['name'])
sdh = IntelHex(sdf)
sdh.start_addr = None
binh.merge(sdh)
if t_self.target.MERGE_BOOTLOADER is True and blf is not None:
t_self.notify.debug("Merge BootLoader file %s" % blf)
blh = IntelHex(blf)
blh.start_addr = None
binh.merge(blh)
with open(binf.replace(".bin", ".hex"), "w") as fileout: