Effacer les filtres
Effacer les filtres

Code Coverage does not work with Visual Studio

7 vues (au cours des 30 derniers jours)
Phil K.
Phil K. le 21 Oct 2022
Modifié(e) : Phil K. le 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
  1 commentaire
Pat Canny
Pat Canny le 21 Oct 2022
I recommend contacting MathWorks Technical Support. This question requires more information.

Connectez-vous pour commenter.

Réponses (0)

Community Treasure Hunt

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

Start Hunting!

Translated by