Custom Software for Target Hardware
Create software that enables or supports the deployment of MATLAB and Simulink designs to hardware platforms. Gain an understanding of folder and file conventions, software components, and information-passing in the build process.
Register custom toolchains for the build process.
Customize XCP server software for target hardware.
Create a target hardware application that checks the validity of code generation assumptions.
target package, you can:
Extend the range of supported hardware.
Provide connectivity between Simulink and your target hardware for external mode and processor-in-the-loop (PIL) simulations.
To meet development goals and control code generation, you can customize system target files.
Connectivity – Hardware
|Describe API details (Since R2020b)|
|Describe API implementation details (Since R2020b)|
|Provide hardware board details (Since R2020b)|
|Describe C and C++ build dependencies to associate with target hardware (Since R2020b)|
|Capture system command for execution on MATLAB computer (Since R2020b)|
|Describe data I/O details for target hardware (Since R2020b)|
|Describe communication protocol parameters (Since R2020b)|
|Provide target emulator details (Since R2023b)|
|Provide C and C++ compiler implementation details (Since R2019a)|
|Base class for target types (Since R2019b)|
|Provide target processor information (Since R2019a)|
Connectivity – Communication
Connectivity – XCP (
|Represent external mode protocol stack (Since R2021a)|
|Base class for external mode connectivity options (Since R2021a)|
|Provide details about connecting MATLAB computer to target hardware (Since R2020b)|
|Describe XCP protocol stack for target hardware (Since R2021a)|
|Represent connectivity options in external mode protocol stack (Since R2021a)|
|Specify XCP platform abstraction layer for target hardware (Since R2021a)|
|Represent XCP serial transport protocol layer (Since R2021a)|
|Represent XCP TCP/IP transport protocol layer (Since R2021a)|
|Base class for XCP transport protocol layer (Since R2021a)|
|Manage target hardware and build tool information (Since R2019a)|
Connectivity – XCP Custom Server
|Perform external mode background activity|
|External mode event trigger|
|Get final simulation time for external mode platform abstraction layer|
|Initialize external mode target connectivity|
|Extract values of configuration parameters supported by external mode abstraction layer|
|Reset external mode target connectivity|
|Set final simulation time in external mode platform abstraction layer|
|Check that external mode simulation is complete|
|Check whether request to stop external mode simulation is received from model|
|Wait for request from development computer to start or stop external mode simulation|
Custom Target Hardware Support
- Custom Targets
Create software to deploy MATLAB and Simulink designs to hardware platforms.
- Target Development Folders, Files, and Builds
Relate custom system target file development to the folders and files that the build process creates and uses.
- Custom Toolchain Registration
Register third-party software build tools for creating executables and libraries.
- Register Custom Toolchain and Build Executable
Register and use a toolchain to build an executable program.
- Troubleshooting Custom Toolchain Validation
Troubleshoot validation errors.
- Customize XCP Server Software
Customize XCP server software for target hardware.
- Check Code Generation Assumptions
Use standalone workflow to check code generator assumptions.
Develop Support by Using Target Package
- Register New Hardware Devices
Extend the range of supported hardware by registering new devices.
- Set Up External Mode Connectivity Between Simulink and Target Hardware
targetpackage to provide connectivity between Simulink and target hardware.
- Define Custom Emulator for Target Connectivity
Provide connectivity for target emulator.
Develop Support by Using System Target Files
- Customize System Target Files
Develop a custom system target file to meet development goals and to control code generation.
- Custom Target Optional Features
Add optional feature support to a custom system target file for compliance with code generation features, such as toolchain compliance and model reference compliance.
- Support Toolchain Approach with Custom Target
Add toolchain approach support to a custom system target file for more user-interface controls of the build process.
- Support Model Referencing
Add model reference support to a custom system target file for model reference builds.
- Support Compiler Optimization Level Control
Add compiler optimization level control support to a custom system target file for more build process control.
- Support Concurrent Execution of Multiple Tasks
Add multitasking execution support to a custom system target file for multicore target models.
- Device Drivers
Use device drivers as part of a real-time development project.
- Create a Transport Layer for TCP/IP or Serial External Mode Communication
Create custom low-level communications layer to support an external mode connection to your custom target.