Main Content

Set Up and Configure Armclang Compiler Toolchain for Code Generation

Set up and configure Armclang compiler toolchain for code generation shows you how to:

  • To register Armclang compiler.

  • Configure the model using Armclang compiler toolchain.

Note

The default compiler toolchain is GNU Tools for ARM Embedded Processors.

Registering Armclang Compiler

To register the Armclang compiler toolchain, follow the hardware setup instructions.

  1. Enter the following command at MATLAB® command prompt to open hardware setup window.

    matlabshared.toolchain.armclang.register
  2. In the Register Armclang Compiler window, Click Download Required in the status section. This navigates you to the web page to download Armclang compiler.

    Hardware setup

    Note

    • Download and Install recommended licensed Arm Compiler V6.14.1.

    • If Armclang compiler is already installed and registered, the status shows Toolchain Registered.

    • If Armclang compiler is installed and not registered, the status shows Installation Detected.

    • Setup and configure Armclang compiler toolchain for code generation is not supported for STM32F4xx Processor based boards.

  3. Ensure that the Armclang compiler is installed and license is set up.

  4. Click Next to validate.

  5. In the Validate Armclang Compiler Installation Path window, click Browse and locate the Armclang compiler installation folder path.

  6. Click Validate.

    Validate armclang

  7. Click Finish If the validation of Armclang compiler is successful.

    If the validation fails, verify the specified Armclang compiler directory.

Configuring the Model Using Armclang Compiler Toolchain

This section describes how to configure the model using Armclang compiler toolchain in configuration parameters.

  1. In the Configuration Parameters window, click Code Generation pane. By default, the Toolchain is GNU Tools for ARM Embedded Processors.

  2. Select Armclang Compiler in Toolchain.

  3. Click OK.

Limitations

Armclang compiler toolchain is only supported for Embedded Coder® Support Package for STMicroelectronics® Discovery Boards, Simulink® Coder™ Support Package for STMicroelectronics Nucleo Boards (except STM32 Nucleo F031K6 board), and Embedded Coder Support Package for ARM® Cortex®-M Processors.