Use memories passed in when getting memory specs

pull/7133/head
Jimmy Brisson 2018-06-13 09:33:39 -05:00
parent 09cdc0631d
commit 92abbb7599
1 changed files with 2 additions and 2 deletions

View File

@ -586,8 +586,8 @@ class Config(object):
def _get_mem_specs(self, memories, cmsis_part, exception_text):
for memory in memories:
try:
size = cmsis_part['memory']['IRAM1']['size']
start = cmsis_part['memory']['IRAM1']['start']
size = cmsis_part['memory'][memory]['size']
start = cmsis_part['memory'][memory]['start']
return (start, size)
except KeyError:
continue