User`s guide
3 Project Generator
• Modify a library file, such a s a chip support library (.csl file)
• Add commands to a header file
• Modify data in a data file
• Add comments to a file for tracking or identifying the file or project
.
Determining the Name of the File to Replace
To replace a file cre ate d wh en you generate a project, y ou need the name of
the file to replace; the content to change; and the replacement file, including
thepathtothefile. Y our model must include a target preferences block
configured for your processor, either a simulator or hardware.
Custom code re placem ent lets you customize the behavior of the linker
by replacing or editing the generated file that contains linker directives.
When you replace or update the linker directives for building your proje ct,
Embedded IDE Link C C stores the linker directives in the file
modelname.cmd.
Follow these steps to identify the file to replace in a project:
1 Open the configuration parameters for your m odel.
2 On the Select tree in the Config u ration Parameter dialog box, select
Embedded IDE Link CC.
3 Set Build action to any entry on the list except Create
processor-in-the-loop project
.
4 Click OK to close the di alog box.
5 Press Ctrl+B to build your m odel.
6 Look at the files in the project in the IDE. Find the file that contains the
information to supplement or replace.
The build process stores the project files in the directory
modelname_ccslink
in your MATLA B working directory, and shows the project directory
information in the MATLAB Command window.
3-66