Code Coverage does not work with Visual Studio

3 views (last 30 days)
Phil K.
Phil K. on 21 Oct 2022
Edited: Phil K. on 25 Oct 2022
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

Answers (0)

Community Treasure Hunt

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

Start Hunting!