@@ -106,14 +106,12 @@ def main():
106
106
107
107
parser .add_argument ("-m" , "--mcu" ,
108
108
metavar = "MCU" ,
109
- default = 'LPC1768' ,
110
109
type = argparse_force_uppercase_type (targetnames , "MCU" ),
111
110
help = "generate project for the given MCU ({})" .format (
112
111
', ' .join (targetnames )))
113
112
114
113
parser .add_argument ("-i" ,
115
114
dest = "ide" ,
116
- default = 'uvision' ,
117
115
type = argparse_force_lowercase_type (
118
116
toolchainlist , "toolchain" ),
119
117
help = "The target IDE: %s" % str (toolchainlist ))
@@ -215,14 +213,6 @@ def main():
215
213
cache = Cache (True , True )
216
214
cache .cache_descriptors ()
217
215
218
- # Clean Export Directory
219
- if options .clean :
220
- if exists (EXPORT_DIR ):
221
- rmtree (EXPORT_DIR )
222
-
223
- for mcu in options .mcu :
224
- zip_proj = not bool (options .source_dir )
225
-
226
216
# Target
227
217
if not options .mcu :
228
218
args_error (parser , "argument -m/--mcu is required" )
@@ -231,6 +221,14 @@ def main():
231
221
if not options .ide :
232
222
args_error (parser , "argument -i is required" )
233
223
224
+ # Clean Export Directory
225
+ if options .clean :
226
+ if exists (EXPORT_DIR ):
227
+ rmtree (EXPORT_DIR )
228
+
229
+ for mcu in options .mcu :
230
+ zip_proj = not bool (options .source_dir )
231
+
234
232
if (options .program is None ) and (not options .source_dir ):
235
233
args_error (parser , "one of -p, -n, or --source is required" )
236
234
# Export to selected toolchain
0 commit comments