Code Coverage does not work with Visual Studio

조회 수: 4 (최근 30일)
Phil K.
Phil K. 2022년 10월 21일
편집: Phil K. 2022년 10월 25일
We are required to calculate code coverage in SIL with Embedded Coder and the Visual Studio c++ compiler. This is the error message I receive:
Target application caught the signal "SIGSEGV" at time 0 and has stopped. Captured stderr messages are displayed above. Consider using SIL debugging to investigate the problem.
The timeout of 60 seconds for receiving data from the rtiostream interface has been exceeded. There might be multiple reasons for this communications failure.
You should:
(a) Check that the target hardware configuration is correct, for example, check that the byte ordering is correct.
(b) Confirm that the target application is running on the target hardware.
(c) Consider the possibility of application run-time failures (e.g. divide by zero exceptions, incorrect custom code integration, etc.).
Note (c): To identify possible reasons for the run-time failure, consider using SIL, which supports signal handlers and debugging.
If you cannot find a solution, consider using the method setTimeoutRecvSecs of rtw.connectivity.RtIOStreamHostCommunicator to increase the timeout value. - Show complete stac
I use MATLAB 2020b(Update 5) and Visual Studio 2015.
What I already tried:
Change to MinGW compiler --> Works but still we should use Visual Studio
Delete everything from the Simulink Model that might "branch" the code --> Code Coverage works with both MinGW and VS
Delete most of the Model but keep some Switches and Stateflows --> Still fails
Increase the timeout --> Still fails
Thank you and BR
Phil
  댓글 수: 1
Pat Canny
Pat Canny 2022년 10월 21일
I recommend contacting MathWorks Technical Support. This question requires more information.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Verification, Validation, and Test에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by