Skip to content

Commit 8e8b546

Browse files
committed
Fix build failure when target's cmsis doesn't exist
For bootloader enabled target, it needs to have cmsis pack or provide memory override. This change fixes build failure in case of no cmsis pack but providing memory override with start being zero.
1 parent 829a3cd commit 8e8b546

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
@@ -798,12 +798,12 @@ def get_all_active_memories(self, memory_list):
798798
start, size = self._get_primary_memory_override(
799799
active_memory.lower()
800800
)
801-
if not start:
801+
if start is None:
802802
raise ConfigException(
803803
"Bootloader not supported on this target. {} "
804804
"start not found in targets.json.".format(active_memory)
805805
)
806-
if not size:
806+
if size is None:
807807
raise ConfigException(
808808
"Bootloader not supported on this target. {} "
809809
"size not found in targets.json.".format(active_memory)

0 commit comments

Comments
 (0)