4.13 Registering a compiler toolchain from the DS-5 command prompt
Use the add_toolchain utility from the command prompt to register a new toolchain.
To register a toolchain using the DS-5 command prompt:
path is the directory containing the toolchain binaries. The
utility automatically detects the toolchain properties.
By default, the add_toolchain utility
is an interactive tool. To use the add_toochain
utility as a non-interactive tool, add the
--non-interactive option to the command.
For example: add_toolchain
Figure 4-16 Registering a new toolchain
The utility prompts whether you want to register the toolchain with the
details it has detected. If you want to change the details, the utility prompts
for the details of the toolchain.
- The toolchain type must be one of ARM Compiler 4, ARM Compiler 5, ARM
Compiler 6, or GCC.
- The toolchain target only applies to GCC toolchains. It indicates what
target platform the GCC toolchain builds for. For example, if your
compiler toolchain binary is named
arm-linux-gnueabihf-gcc, then the target name is the
target field allows DS-5 to distinguish different toolchains that
otherwise have the same version.
Figure 4-17 Registering a new toolchain
You must manually enter the toolchain properties if:
- The toolchain properties were not autodetected.
- The type, major version, and minor version of the
new toolchain are identical to a toolchain that DS-5 already knows
After you register a new toolchain, you must restart DS-5 before you can use
the toolchain in the DS-5 environment.
When you create a new project, DS-5 shows the new toolchain in the available list of
toolchains. In this example, ARMCCv5.01 is the newly
Figure 4-18 Using a new toolchain for a new project
For an existing project, if you want to change the toolchain to the newly registered
toolchain, use the Tool Chain Editor dialog.
- Right-click the project and select Properties to
show the Properties dialog.
Figure 4-19 Changing the toolchain for a project