Skip to content

Commit 252840b

Browse files
author
Amanda Butler
authored
Merge pull request #999 from SenRamakri/sen_Armc5CompilationMethod
Added documentation for using ARM Compiler 5 with 5.12 release
2 parents 72cdc68 + abe394a commit 252840b

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

docs/tools/tools_intro.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ We created the Mbed command-line tool (Mbed CLI), a Python-based tool, specifica
2121

2222
Mbed OS 5 can be built with various toolchains. The currently supported versions are:
2323

24-
- [Arm compiler 6.11](https://developer.arm.com/products/software-development-tools/compilers/arm-compiler/downloads/version-6).
24+
- [Arm Compiler 6.11 (default ARM toolchain)](https://developer.arm.com/products/software-development-tools/compilers/arm-compiler/downloads/version-6).
25+
- [Arm Compiler 5.06 update 6 (to be deprecated in the future)](https://developer.arm.com/products/software-development-tools/compilers/arm-compiler-5/downloads).
2526
- [GNU Arm Embedded version 6 (6-2017-q1-update)](https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads).
2627
- [IAR Embedded Workbench 8.32.1](https://www.iar.com/iar-embedded-workbench/tools-for-arm/arm-cortex-m-edition/).
2728

@@ -44,3 +45,30 @@ For more information, please see the [Online Compiler page](developing-mbed-onli
4445

4546
You can export your project from any of our tools to third party tools. For instructions, as well as tool-specific information, see [the Exporting to third party toolchains page](exporting.html).
4647

48+
<div style="background-color:#F3F3F3; text-align:left; vertical-align: middle; padding:15px 30px;"> **Note:** We encourage you to switch to Arm Compiler 6 soon because we will deprecate Arm Compiler 5 support in the future. However, if you need to update to Mbed OS 5.12 but still require compiling with Arm Compiler 5 until you are in possession of Arm Compiler 6, we provide methods to override the Arm toolchain version. If you do this, your target may not be able to compile with Arm Compiler 5, or you may see undefined behaviors.
49+
50+
To force Arm Compiler 5, you can use the following options:
51+
52+
- Create or update your `mbed_app.json` as below. This is the recommended method for applications to use Arm Compiler 5.
53+
54+
```
55+
{
56+
"target_overrides": {
57+
"*": {
58+
"target.supported_toolchains": ["ARMC5", "GCC_ARM", "IAR"]
59+
}
60+
}
61+
}
62+
```
63+
64+
- For porting a target that cannot use Arm Compiler 6 at this time, modify the `supported_toolchains` entry in `targets.json` to replace all `ARM` and `ARMC6` entries with `ARMC5`:
65+
66+
```
67+
"MY_TARGET_NAME": {
68+
"supported_form_factors": [...],
69+
"core": "Cortex-M4",
70+
"supported_toolchains": ["ARMC5", "GCC_ARM", "IAR"],
71+
...
72+
}
73+
```
74+
</div>

0 commit comments

Comments
 (0)