Configure a Simulink® model, build an executable, and run the executable on ARM® Cortex®-M QEMU emulator.
Open an existing Simulink model, such as arm_cortex_m_gettingstarted,
or create a new model.
Create a working copy of your Simulink model using File > Save As. Keep the original model as a backup copy.
In the model, click the Model Configuration Parameters button.
Select the Hardware Implementation pane.
Set the Hardware board parameter
to ARM Cortex-M3 (QEMU). This pane provides
a CPU Clock (MHz) parameter.

To execute the generated code using the QEMU emulator, requires you to install Embedded Coder® Interface to QEMU emulator add-on. If you have not installed, only code generation is supported. Make sure that you select the Generate Code Only option in Configuration Parameters > All Parameters > Code generation category.

Click Apply to save the changes to your model.
Note
Rapid Accelerator simulation is not supported by Embedded Coder Support Package for ARM Cortex-M Processors.