Code composer studio cannot find 'rt_modf.h' header file related to MOD block after generating code.

11 ビュー (過去 30 日間)
I am using the Simulink “mod” block in a model, from Simulink library: Simulink / Math Operations : Mod
I am using Simulink Coder to generate C code form his Simulink model. The generated source file calls out header file 'rt_modf.h.
This header 'rt_modf.h' cannot be found in his TI CCS project.
I am compiling the code in TI Code Composer Studio and getting the build error that it cannot find the header file 'rt_modf.h' called out in the generated source file.

採用された回答

MathWorks Support Team
MathWorks Support Team 2024 年 7 月 29 日
編集済み: MathWorks Support Team 2024 年 8 月 29 日
I would suggest a couple of diagnosing steps:
  1.  Please build a simple reproduction model that uses the "MOD" block and see if it indeed includes the "rt_modf.h" header file in the generated code.
  2. Once you've done this, please confirm that you can generate an executable using "grt.tlc" with this reproduction model.
  3.  If the header file is included in the generated code, and the executable build fine, you should look where this header file is located. You should first look into the code generation folder and see if it's there. If it's in the code generation folder, it's possible that the necessary directories are not provided to include for CCS to compile. If it's not in the codegen folder, it could be somewhere else on the MATLAB path and the you might need to use "packNGo" to package all dependencies of the generated code.
For more information on "packNGo" please follow the documentation link below:
Please run the below command in the command window of installed MATLAB R2019a version to get release specific documentation
>> web(fullfile(docroot, 'rtw/ref/packngo.html'))
If the above steps does not resolve the issue or if you have further questions please submit a Technical support request here: 
Please follow the below link to search for the required information regarding the current release:

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

タグ

タグが未入力です。

製品


リリース

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by