필터 지우기
필터 지우기

An error occurred ('RTW:buil​dProcess:f​atalBuildE​rror') when calling 'sim': error while running SIL Simulation in Test manager

조회 수: 36 (최근 30일)
I am running SIL in test manager enviornment and my test cases are failing randomly with the error saying,
An error occurred ('RTW:buildProcess:fatalBuildError') when calling 'sim':
Error(s) encountered while building "XXX_rtwlib"
While the code for model is getting generated without any issues.
Could you please assist me in resolving the issue

답변 (1개)

Shivani
Shivani 2024년 6월 10일
Hello,
I was also facing a similar issue while running SIL from Test Manager. Here are some of the workarounds that I tried to resolve this issue:
Initially, I changed the Shared code placement to Auto. You can refer to the following steps for more information on how to modify this setting:
  1. In the top model, on the Modeling tab, click Model Settings to open the Configuration Parameters dialog box.
  2. Go to Code Generation -> Interface.
  3. Change Shared code placement to Auto. This way, the problematic shared utility function will be directly generated inside "model.c", and no separate file will be generated for it in the shared utilities folder.
I was previously using the ‘LCC’ compiler and came across the following MATLAB Answer thread where it is mentioned that the ‘LCC’ compiler is deprecated: https://www.mathworks.com/matlabcentral/answers/2061017-lcc-compiler-will-be-removed-from-matlab-simulink-in-a-future-release. Therefore, I updated my C++ compiler to MinGW.
Additionally, you can also try updating your MATLAB instance to the latest release as a possible workaround.

카테고리

Help CenterFile Exchange에서 App Building에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by