File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 17
17
board = env .BoardConfig ()
18
18
flasher_path = platform .get_package_dir ("tool-siwiflasher" ) or ""
19
19
20
+ def _get_board_mcu ():
21
+ return board .get ("build.mcu" )
22
+
20
23
env .Replace (
24
+ __get_board_mcu = _get_board_mcu ,
25
+
21
26
AR = "arm-none-eabi-ar" ,
22
27
AS = "arm-none-eabi-as" ,
23
28
CC = "arm-none-eabi-gcc" ,
38
43
)
39
44
40
45
# Setup tools based on system type
41
- if "windows" in get_systype ():
46
+ if "windows" in get_systype () and board . get ( "build.mcu" ) != "MT2625" :
42
47
env .Replace (
43
48
SIWIFLASHER = join (flasher_path , "siwiflasher" ),
44
49
REFLASH_FLAGS = [
113
118
upload_source = target_firm
114
119
upload_actions = [env .VerboseAction ("$UPLOADCMD" , "Uploading $SOURCE" )]
115
120
116
- if "windows" in get_systype () and env .subst ("$UPLOAD_PORT" ) == "" :
121
+ if "windows" not in get_systype () or board .get ("build.mcu" ) == "MT2625" :
122
+ env .Append (
123
+ UPLOADERFLAGS = [
124
+ "-m" , '"${__get_board_mcu()}"' ,
125
+ ]
126
+ )
127
+
128
+ if "windows" in get_systype () and board .get ("build.mcu" ) != "MT2625" and env .subst ("$UPLOAD_PORT" ) == "" :
117
129
env .Append (
118
130
UPLOADERFLAGS = [
119
131
"-u"
You can’t perform that action at this time.
0 commit comments