Select a target¶
emCode includes eight targets, called tasks by Visual Studio Code.
-
Build cleans the files from a previous compilation, compiles and links.
-
Fast compiles only the main sketch and the local libraries, links, uploads and opens a serial window in Terminal.
-
Upload uploads the resulting HEX or BIN executable file to the board.
-
Clean erases the files generated from a previous compilation.
-
Make compiles only the main sketch and the local libraries, and links.
-
Archive prepares archives for the local libraries.
-
Unarchive erases the archives for the local libraries.
-
Core generates the pre-compiled board core archive.
Compare the targets¶
The following table shows the scope of each target:
| Target… | Cleans | Compiles | Uploads | Opens Terminal | Debugs |
|---|---|---|---|---|---|
| Build | |||||
| Upload | |||||
| Clean | |||||
| Fast | |||||
| Make |
The Build target is recommended for a clean compilation, for example when a user’s library has been changed.
Launch a target¶
To select a target,
- Press a short-key.
| Key | Target |
|---|---|
| Ctrl+Shift+B | Build |
| Ctrl+Shift+U | Upload |
| Ctrl+Shift+T | Fast |
-
Call the prompt with Ctrl+Shift+P and enter
Tasks: Run Task; -
Then select the target you want.