Skip to content

Commit f7b6af0

Browse files
author
Oren Cohen
committed
Update PSOC6 postbuild prints
1 parent 7027eac commit f7b6af0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/targets/PSOC6.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ def find_cm0_image(toolchain, resources, elf, hexf, hex_filename):
120120
from tools.resources import FileType
121121
hex_files = resources.get_file_paths(FileType.HEX)
122122
m0hexf = next((f for f in hex_files if os.path.basename(f) == hex_filename), None)
123-
if toolchain.target.name.endswith('_PSA'):
123+
if toolchain.target.is_PSA_non_secure_target:
124124
m0hexf = next((f for f in hex_files if os.path.basename(f) == os.path.basename(hexf)), m0hexf)
125125

126126
if m0hexf:
127-
toolchain.notify.debug("M0 core image file found: %s." % os.path.basename(m0hexf))
127+
toolchain.notify.info("M0 core image file found: %s." % m0hexf)
128128
else:
129-
toolchain.notify.debug("M0 core hex image file %s not found. Aborting." % hex_filename)
129+
toolchain.notify.info("M0 core hex image file %s not found. Aborting." % hex_filename)
130130
raise ConfigException("Required M0 core hex image not found.")
131131

132132
return m0hexf

0 commit comments

Comments
 (0)