メインコンテンツ

Build and Run Executable on Altera SoC Platform

R2026b

You can configure a Simulink® model to generate code, build an executable, and then run the executable on your Altera® SoC platform. The executable runs in the Linux® environment on the ARM® Cortex-A9 processor on the Altera SoC platform.

Configure the Model

  1. Save a copy of your model. Keep the original model as a backup copy.

  2. In the Hardware tab, in the Prepare group, click Hardware Settings.

  3. In the Configuration Parameter dialog box, select the Hardware Implementation tab.

  4. Set the Hardware board parameter to your Altera SoC platform. The parameters in the Target hardware resources panes are automatically assigned default values for your Altera SoC platform.

  5. In the Configuration Parameter dialog box, click Code Generation. Selecting the Altera SoC platform in the previous step automatically set the System target file parameter to ert.tlc. Similarly, the Toolchain parameter now specifies ARM Development Studio Altera Edition (DS-5 AE) for the build process.

Build and Run the Executable

  1. Save your changes to the model.

  2. Verify that the Altera SoC board and the host computer have a network connection.

    Note

    If your host computer connects to multiple Altera SoC platform boards, disconnect the boards that you are not using.

  3. In the Hardware tab, in the Deploy group, click Build, Deploy & Start. As the build starts, the Diagnostic Viewer starts and displays the build status.

  4. When the executable starts running on the Altera SoC hardware, the build process opens a command window.

    View the executable status in the command window.

    The executable runs in the Linux environment on a single core of the ARM Cortex-A9 processor on the Altera SoC platform.

    Note

    PIL simulation and PIL-based execution profiling require single-core execution. To design a model that can run on both cores, see Multicore Processor Targets.