Configure a Model for ARM Cortex-A9 QEMU Emulator

Configure a Simulink® model, build an executable, and run the executable on the ARM® Cortex®-A QEMU emulator.

  1. Open an existing Simulink model, such as arm_cortex_a_gettingstarted, or create a new model.

  2. Create a working copy of your Simulink model using File > Save As. Keep the original model as a backup copy.

  3. In your Simulink model, select Simulation > Model Configuration Parameters.

  4. In the Configuration Parameter dialog box, click Hardware Implementation.

  5. Set the Hardware board parameter to ARM Cortex-A9 (QEMU). The parameters in the Clocking, Build options, and External mode panes are automatically assigned their default values for the BeagleBone Black board.

  6. In the Configuration Parameter dialog box, click Code Generation.

    Selecting the ARM Cortex-A9 QEMU in the previous step automatically set the System target file parameter to ert.tlc. The ert.tlc updates the model configuration parameters. For example, the Toolchain parameter now specifies Linaro Toolchain v4.8 as the toolchain for the build process.

  7. In the Configuration Parameter dialog box, click Hardware Implementation. From the Groups list, select the Build options pane.

  8. By default, the Build action parameter is set to Build, load, and run. Later, when you click Build Model, this setting runs the .elf file on the QEMU emulator.

    To simply build, or generate, code without loading and running it on the emulator, select Hardware Implementation > Build options and change Build action to Build.

  9. Click OK and save the changes to your model.