File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -62,16 +62,17 @@ def get_linker_script(mcu):
62
62
with open (template_file ) as fp :
63
63
data = Template (fp .read ())
64
64
content = data .substitute (
65
- stack = hex (0x20000000 + ram ), # 0x20000000 - start address for RAM
66
- ram = str (int (ram / 1024 )) + "K" ,
67
- flash = str (int (flash / 1024 )) + "K"
65
+ stack = hex (0x20000000 + ram ), # 0x20000000 - start address for RAM
66
+ ram = str (int (ram / 1024 )) + "K" ,
67
+ flash = str (int (flash / 1024 )) + "K"
68
68
)
69
69
70
70
with open (default_ldscript , "w" ) as fp :
71
71
fp .write (content )
72
72
73
73
return default_ldscript
74
74
75
+
75
76
env .Append (
76
77
CPPPATH = [
77
78
join (FRAMEWORK_DIR , board .get ("build.core" ),
@@ -82,6 +83,9 @@ def get_linker_script(mcu):
82
83
"variants" , board .get ("build.mcu" )[0 :7 ], "inc" ),
83
84
join (FRAMEWORK_DIR , board .get ("build.core" ), "spl" ,
84
85
"variants" , board .get ("build.mcu" )[0 :7 ], "src" )
86
+ ],
87
+ LINKFLAGS = [
88
+ "-nostartfiles"
85
89
]
86
90
)
87
91
You can’t perform that action at this time.
0 commit comments