You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*`-m <MCU>` to select a target. If 'detect' or 'auto' parameter is passed then mbed CLI will attempt to detect the connected target and compile against it.
348
348
*`-t <TOOLCHAIN>` to select a toolchain (of those defined in `mbed_settings.py`, see above). The value can be either `ARM` (ARM Compiler 5), `GCC_ARM` (GNU ARM Embedded), or `IAR` (IAR Embedded Workbench for ARM).
349
349
*`--source <SOURCE>` to select the source directory. The default is `.` (the current directorty). You can specify multiple source locations, even outside the program tree.
350
350
*`--build <BUILD>` to select the build directory. Default: `BUILD/` inside your program.
Using `mbed target <target>` and `mbed toolchain <toolchain>` you can set the default target and toolchain for your program, meaning you won't have to specify these every time you compile or generate IDE project files.
445
445
446
+
You can also use `mbed target detect', which will attempt to detect the connected target board and use it as parameter every time you compile or export.
447
+
446
448
447
449
## Exporting to desktop IDEs
448
450
@@ -501,7 +503,7 @@ mbedgt: completed in 21.28 sec
501
503
```
502
504
503
505
The arguments to `test` are:
504
-
*`-m <MCU>` to select a target for the compilation.
506
+
*`-m <MCU>` to select a target for the compilation. If 'detect' or 'auto' parameter is passed then mbed CLI will attempt to detect the connected target and compile against it.
505
507
*`-t <TOOLCHAIN>` to select a toolchain (of those defined in `mbed_settings.py`, see above), where `toolchain` can be either `ARM` (ARM Compiler 5), `GCC_ARM` (GNU ARM Embedded), or `IAR` (IAR Embedded Workbench for ARM).
506
508
*`--compile-list` to list all the tests that can be built
507
509
*`--run-list` to list all the tests that can be ran (they must be built first)
0 commit comments