Merge pull request #6885 from theotherjimmy/fix-startaddr-conflict

BL mode: Prevent jump address conflicts
pull/6836/merge
Cruz Monrreal 2018-05-14 16:16:34 -05:00 committed by GitHub
commit 0fd5447ff7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -438,6 +438,7 @@ def merge_region_list(region_list, destination, notify, padding=b'\xFF'):
if region.filename:
notify.info(" Filling region %s with %s" % (region.name, region.filename))
part = intelhex_offset(region.filename, offset=region.start)
part.start_addr = None
part_size = (part.maxaddr() - part.minaddr()) + 1
if part_size > region.size:
raise ToolException("Contents of region %s does not fit"