Skip to content

Commit 11d7e22

Browse files
authored
Added the ability to specify a custom startup file for CMSIS (#582)
1 parent 321e4c7 commit 11d7e22

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

builder/frameworks/cmsis.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,5 +131,10 @@ def prepare_startup_file(src_path):
131131
src_filter=[
132132
"-<*>",
133133
"+<%s>" % board.get("build.cmsis.system_file", "system_%sxx.c" % mcu[0:7]),
134-
"+<gcc/startup_%s.S>" % product_line.lower()]
134+
"+<gcc/%s>"
135+
% board.get(
136+
"build.cmsis.startup_file",
137+
"startup_%s.S" % product_line.lower()
138+
)
139+
]
135140
)

0 commit comments

Comments
 (0)