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

1 次查看(过去 30 天)

采纳的回答

MathWorks Support Team
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by