An example guide on developing a custom embedded target using Real-Time Workshop is available at the bottom of the page. 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. The instruction guide shows the different options of embedding your 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, creating blocks and libraries, and implementing processor-in-the-loop (PIL) testing.
The intent of the guide is to provide an example that end users can refer to along with Real-Time Workshop's Customizing Targets guide:
Refer to Chapter 24 of User Guide for Simulink Coder at the following link:
The intent is not to provide a full-featured and maintained Embedded Target product as may be provided by MathWorks or third-party products listed in supported hardware page:
However if you have questions on this solution, send an e-mail to
Note: This solution uses several third-party products to compile and download the C code to the S12X. Evaluation versions were used but the demo kit also supports full versions of these products. The installation guide identifies the specific releases versions used and provides information with links on how to obtain these products, but these details may change. Contact the third-party vendors with questions or information on how to obtain the third-party products.