diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cbeedc0e..9ee878a2 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -15,7 +15,7 @@ "${input:FRICertificatPath}", "${input:FRIPrivateKeyPath}", "${input:FRIBuildDirectory}", - "-TGNU", + "${input:FRIBuildToolchain}", "${input:FRICleanBeforeBuild}" ], "options": { @@ -107,6 +107,16 @@ "description": "Where would you like the build directory to be?", "default": "-pbuild" }, + { + "type": "pickString", + "id": "FRIBuildToolchain", + "description": "Which toolchain would you like to build with?", + "options": [ + "-TGNU", + "-TARMCLANG" + ], + "default": "-TGNU" + }, { "type": "pickString", "id": "FRITarget", diff --git a/README.md b/README.md index a015db4e..36ff6c52 100644 --- a/README.md +++ b/README.md @@ -43,8 +43,8 @@ of FVP is supported by the FRI. > Note: The build script `./tools/scripts/build.sh` assumes - `Arm Compiler for Embedded (armclang)` by default, append the extra option - `--toolchain GNU` to build using Arm GNU Toolchain. + `Arm GNU Toolchain (arm-none-eabi-gcc)` by default, append the extra option + `--toolchain ARMCLANG` to build using Arm Compiler for Embedded Toolchain. ## Project organisation diff --git a/docs/development_environment/vscode_dev_env_build_and_debug.md b/docs/development_environment/vscode_dev_env_build_and_debug.md index 422e2c18..ecc42f29 100644 --- a/docs/development_environment/vscode_dev_env_build_and_debug.md +++ b/docs/development_environment/vscode_dev_env_build_and_debug.md @@ -100,6 +100,16 @@ to setup the needed python environment for VSI to work: These options allow you to build reference applications. +> The Arm GNU Toolchain is provided with the container and is the default build +toolchain. If you wish to use the Arm Compiler for Embedded instead, you can +download it from its [official page](https://developer.arm.com/Tools%20and%20Software/Arm%20Compiler%20for%20Embedded). +Login is required for the download, and you will need a license in order to +run the toolchain once installed. +> +> This project has been tested with version *6.21* of the toolchain, which +is available as `r6p21-00rel0` from the *Revision* drop-down menu on the +download page after logging in. + * **Using generic vscode task:** ``` Command Palette (F1) @@ -110,12 +120,14 @@ Command Palette (F1) => (Path to device certificate) => (Path to device private key) => (build directory path) +=> (build toolchain) => (clean build) ``` * **calling build script directly:** ``` -./tools/scripts/build.sh --certificate_path +./tools/scripts/build.sh --toolchain +--certificate_path --private_key_path --target --inference --audio