| Contents | Index |
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.
Start by downloading the technical solution on this web page:
Solution 1-BHU00D — An example guide to developing an embedded target
This solution 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:
Solution ID 1-9RXFT3 — An example Freescale S12X target using the Cosmic Compiler
Solution ID 1-BHT815 — An example Freescale S12X target using the CodeWarrior® Compiler
These demo kits contain example models, code generation files, and instruction guides on generating and testing code for the processor. The Cosmic and Arduino examples demonstrate 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 demo 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 supported hardware Web page: http://www.mathworks.com/products/embedded-coder/supportedio.html.
You can watch videos showing overviews of both the demo kits at the following links:
For another example target for the ARM9 (STR9) processor, see Solution ID 1-BBT4ID — An example ARM®9 (STR9) target using the GNU ARM Compiler and Hitex STR9-comStick.
If you have questions on specific targets, please email mytarget@mathworks.com.
The demo 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 Simulink Coder targets.
![]() | About Embedded Target Development | Target Development Mechanics | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |