Keil Logo

Setup Default Arm Compiler Version

A default version can be defined for each Arm Compiler (5 and 6). New projects created for a specific MCU type will use the associated compiler1.

Steps to define a default compiler:

  1. Click Project - Manage - Project Items - Folders/Extensions - Setup Default ARM Compiler Version.

    Manage Project Items - Folders/Extensions Dialog

    The dialog lists all supported Arm Compilers and allows you to associate a default version:

    Components, Environments and Books Dialog

  2. Select the compiler from the field Default Version to use. The entry Unspecified : use latest compiler version installed x associates the compiler with the highest version number. This ensures building your projects with the most actual compiler version registered. Alternatively, you can select a specific compiler version from the drop-down list.

Note

1The following rules apply for the associated Arm Compiler when creating a new project:

  • For Armv8-M based devices (Cortex-M23/M33/M35P/M55), Arm Compiler 6 is selected and the only option.
  • For Armv6-M (Cortex-M0/M0+) and Armv7-M (Cortex-M3/M4/M7), Arm Compiler 6 is selected. You can choose to use Arm Compiler 5 instead.
  • For legacy cores (Arm7, Arm9, Cortex-R4(F)), Arm Compiler 5 is selected and the only option.

Interaction within µVision

Only registered Arm compilers can be associated. Refer to Manage ARM Compiler Versions to register a compiler.

Compiler versions that have been deleted get identified with the entry Missing:. Also, the Build Output window will inform about missing compiler versions.

During development, but especially during the maintenance phase of a project, it might be required to use a specific compiler version instead of using the default compiler version. Set the compiler version for each project target individually in the field Options for Target - Target - ARM Compiler:

Components, Environments and Books Dialog

Related Information

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.