Sample Custom Targets
There are technical solutions on the MathWorks Web site that you can use as a starting point to create your own target solution. The solutions provide guides to the following tasks for creating custom targets:
Methods of embedding code onto a custom processor
Creating a system target file
Customizing the makefile and main file
Adding compiler, chip, and board specific information
Integrating legacy code and device drivers
Creating blocks and libraries
Implementing processor-in-the-loop (PIL) testing.
Consider these options:
Download the embedded targets development guide
zipfile from this web page:
zipfile provides example files and a guide to developing a custom embedded target. The guide is divided into two parts, one on creating a generic custom target and another on creating a target for the Freescale™ S12X processor using the Cosmic Compiler.
Read the example guide along with this document to understand the tasks for developing embedded targets.
For more detailed example files for specific processors, see:
These example kits contain example models, code generation files, and instruction guides on generating and testing code for the processor. The Cosmic example illustrates the use of the target connectivity API for processor-in-the-loop (PIL) testing. The CodeWarrior® example does not have PIL but shows CAN Calibration Protocol (CCP) and Simulink® external mode.
The intent of the example kits is to provide working examples that you can use as a base to create your own target solution. The intent is not to provide a full featured and maintained Embedded Target product like those provided by MathWorks® or third-party products, as listed on the Embedded Coder Hardware Support Web page.
You can watch a video that shows an overview of the example kit
For an example target for the ARM9 (STR9) processor, see Is there an example ARM9 (STR9) target... using the GNU ARM Compiler and Hitex STR9-comStick?.
If you have questions on specific targets, email email@example.com.
The example kits and this document describe Embedded Coder® features such as customized
ert system target files and
processor-in-the-loop testing, but you can study the examples as a starting point for use with