Main Content

Set Up and Configuring Armclang Compiler Toolchain for Code Generation

Setup 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 Armclang compiler toolchain isGNU Tools for ARM Embedded Processors.

注册Armclang编译器

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 theRegister Armclang Compilerwindow, ClickDownload Requiredin the status section. This navigates you to the web page to download Armclang compiler.

    Note

    • Download and Install licensed Arm Compiler V6.12.

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

    • If Armclang compiler is installed and not registered, the status showsInstallation 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 setup.

  4. ClickNextto validate.

  5. In theValidate Armclang Compiler Installation Pathwindow, clickBrowseand locate the Armclang compiler installation folder path.

  6. ClickValidate.

  7. ClickFinish, 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 theConfiguration Parameterswindow, clickCode Generationpane. By default, theToolchainisGNU Tools for ARM Embedded Processors.

  2. SelectArmclang CompilerinToolchain.

  3. ClickOK.

Limitations

Armclang compiler toolchain is only supported forEmbedded Coder®Support Package for STMicroelectronics®Discovery Boards,金宝app®Coder™ Support Package for STMicroelectronics Nucleo Boards(except STM32 Nucleo F031K6 board), andEmbedded Coder Support Package for ARM®Cortex®-M Processors.