2.16 Registering a compiler toolchain from the DS-5 command prompt

Use the add_toolchain utility from the DS-5 command prompt to register a new toolchain.

To register a toolchain using the DS-5 command prompt:

Procedure

  1. Enter add_toolchain path, where path is the directory containing the toolchain binaries. The utility automatically detects the toolchain properties.
    Figure 2-21 Registering a new toolchain
    Registering a new toolchain

  2. 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.

    Note

    • 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 prefix arm-linux-gnueabihf. The target field allows DS-5 to distinguish different toolchains that otherwise have the same version.
    Figure 2-22 Registering a new toolchain
    Registering a new toolchain

    Note

    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 about.
  3. After you register a new toolchain, you must restart DS-5 before you can use the toolchain in the DS-5 environment.
  4. 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 registered toolchain.
    Figure 2-23 Using a new toolchain for a new project
    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.
    • Select C/C++ Build > Tool Chain Editor
      Figure 2-24 Changing the toolchain for a project
      Changing the toolchain for a project

Non-Confidential - BetaPDF file icon PDF versionARM DUI0478U
Copyright © 2010-2015 ARM. All rights reserved.