Why is the documentation on deletion of user *.c files from the 'rtw' build directory unclear in the Real-Time Workshop 5.0 (R13)?

2 views (last 30 days)
The documentation on deletion of user *.c files from the 'rtw' build directory is unclear in the Real-Time Workshop 5.0 (R13)?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
This bug has been fixed in Release 14 Service Pack 2 (R14SP2). For previous releases, please read below for any possible workarounds:
From R12.1 to R13, the behavior of the Real-Time Workshop regarding user *.c files in the build directory was changed. Previously any *.c files the user had put in the build directory were not deleted, but now they are, unless the string 'target specific file' is placed in the first line of the *.c or *.h file.
This is explained in the help for the R13 back-end file MATLAB_ROOT/toolbox/rtw/rtw/tlc_c.m.
This function is responsible for managing the creation of the *.c and *.h files in the Real-Time Workshop build directory. It will also remove old *.c and *.h files.
The normal operation of the Real-Time Workshop assumes that all *.c
and *.h files within the Real-Time Workshop build directory are created during the TLC process of the Real-Time Workshop build procedure. Third-party targets may also create *.c and *.h files in the build directory. To prevent the Real-Time Workshop from deleting or altering these files, the must be explicitly marked as target specific files by the presence of the string 'target specific file' in the first line of the *.c or *.h file.
You can read the complete file by typing "edit tlc_c.m" at the MATLAB command prompt.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!