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
<spanclass="tips">**Tip:** If you have files that you want to compile only in release mode, put them in a directory called `TARGET_RELEASE` at any level of your tree. If you have files that you want to compile only in debug mode, put them in a directory called `TARGET_DEBUG` at any level of your tree (then use `-o debug-info` as explained above).
486
486
</span>
487
487
488
+
#### Automating toolchain and target selection
489
+
490
+
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.
491
+
492
+
### Exporting to desktop IDEs
493
+
494
+
If you need to debug your code, a good way to do that is to export your source tree to an IDE project file, so that you can use the IDE's debugging facilities. Currently *mbed CLI* supports exporting to Keil uVision, DS-5, IAR Workbench, Simplicity Studio and other IDEs.
495
+
496
+
For example, to export to uVision run:
497
+
498
+
```
499
+
$ mbed export -i uvision -m K64F
500
+
```
501
+
502
+
A ``.uvproj`` file is created in the projectfiles/uvision folder. You can open the project file with uVision.
488
503
489
-
#### Compiling tests
504
+
###Testing
490
505
491
506
Use `mbed test --list-compile` to list the tests available:
492
507
@@ -545,21 +560,6 @@ Compiled test binaries are created in ```.build/<TARGET>/<TOOLCHAIN>/TestCase1.b
545
560
546
561
<spanclass="notes">**Note:** This feature does not work in application modules that contain ```main()```. This issue is being worked on in parallel. However, currently we don't have any module with ```main()``` and ```TESTS``` together. Hence it does not break any existing module.</span>
547
562
548
-
#### Automating toolchain and target selection
549
-
550
-
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.
551
-
552
-
### Exporting to desktop IDEs
553
-
554
-
If you need to debug your code, a good way to do that is to export your source tree to an IDE project file, so that you can use the IDE's debugging facilities. Currently *mbed CLI* supports exporting to Keil uVision, DS-5, IAR Workbench, Simplicity Studio and other IDEs.
555
-
556
-
For example, to export to uVision run:
557
-
558
-
```
559
-
$ mbed export -i uvision -m K64F
560
-
```
561
-
562
-
A ``.uvproj`` file is created in the projectfiles/uvision folder. You can open the project file with uVision.
0 commit comments