Custom Software for Target Hardware
Create software for the deployment of MATLAB® and Simulink® designs to hardware platforms
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.
|Manage target hardware and build tool information|
Connectivity – Hardware
|Describe API details|
|Describe API implementation details|
|Provide hardware board details|
|Describe C and C++ build dependencies to associate with target hardware|
|Capture system command for execution on MATLAB computer|
|Describe data I/O details for target hardware|
|Describe communication protocol parameters|
|Provide C and C++ compiler implementation details|
|Base class for target types|
|Provide target processor information|
Connectivity – Communication
|Describe communication channel properties|
|Describe serial communication channel|
|Describe TCP communication properties|
Connectivity – XCP (
|Represent external mode protocol stack|
|Base class for external mode connectivity options|
|Describe XCP protocol stack for target hardware|
|Represent connectivity options in external mode protocol stack|
|Specify XCP platform abstraction layer for target hardware|
|Represent XCP serial transport protocol layer|
|Represent XCP TCP/IP transport protocol layer|
|Base class for XCP transport protocol layer|
|Return current value for any model configuration parameter|
|Enable or disable any model configuration parameter|
|Set value for any model configuration parameter|
Connectivity – XCP Custom Slave
|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.
- Set Up PIL Connectivity by Using target Package
Provide PIL connectivity between Simulink and the target hardware.
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.
- Support C Function Prototype Control
Add C function prototype control support to a custom system target file for more build process control.
- Support C++ Class Interface Control
Add C++ class interface control support to a custom system target file for more build process control.
- 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.