Build and Run an Executable on the ARM Cortex-A9 QEMU Emulator

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

  1. Using the getQEMUEmulatorAddOn function, download and install the Embedded Coder® Interface to QEMU Emulator add-on.

  2. Configure your model as described in Configure a Model for ARM Cortex-A9 QEMU Emulator.

  3. In your model, click the Build Model button.

    During this process, you can observe the following events:

    • QEMU displays a status window.

    • MATLAB® Command Window displays a process ID (PID) for QEMU.

    • Diagnostic Viewer displays the status of the build process.

    When QEMU is running the elf file, it opens a status window like this one.

  4. To stop the executable and close QEMU, use the MATLAB Command Window to enter:


    A message confirms that the QEMU process has stopped. For example:

    Terminated QEMU process with PID 7124.