Main Content

Custom Targets

A custom target is a software package that you create to deploy MATLAB® and Simulink® designs to target hardware. Using the software package, you can perform tasks to optimize, prototype, verify, and deploy an application to your hardware. This table lists tasks that you can perform by using target classes and functions.

Register new hardware devices and hardware boards for Hardware Implementation settings.

Register New Hardware Devices




Build a target application using a CMake-based toolchain.

Create Custom CMake Toolchain Definition

Generated Code Compilation

Deploy, download, and run an application on target hardware.



Tune parameters and monitor target application signals during an external mode simulation.

Set Up External Mode Connectivity Between Simulink and Target Hardware

External Mode Simulation by Using XCP Communication

Customize XCP Server Software

Test numerical equivalence between your MATLAB code or Simulink model and the generated code by running a processor-in-the-loop (PIL) simulation.

Set Up PIL Connectivity by Using Target Framework

Configure and Run PIL Simulation

Perform code execution profiling through a PIL simulation.

Set Up PIL Connectivity by Using Target Framework

Create Execution-Time Profile for Generated Code

This table lists additional tasks that you can perform alongside a custom target defined by target classes and functions.

You can also create custom software for ARM® processors, which is based on MathWorks® reference targets. For example, see: