Skip to content

Commit 92abbb7

Browse files
committed
Use memories passed in when getting memory specs
1 parent 09cdc06 commit 92abbb7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/config/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,8 @@ def _get_cmsis_part(self):
586586
def _get_mem_specs(self, memories, cmsis_part, exception_text):
587587
for memory in memories:
588588
try:
589-
size = cmsis_part['memory']['IRAM1']['size']
590-
start = cmsis_part['memory']['IRAM1']['start']
589+
size = cmsis_part['memory'][memory]['size']
590+
start = cmsis_part['memory'][memory]['start']
591591
return (start, size)
592592
except KeyError:
593593
continue

0 commit comments

Comments
 (0)