How can I debug the S-Function generated for SIL simulation with a target from Embedded Coder R2017b?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Thomas Becker
el 5 de Feb. de 2018
Respondida: Niwin Anto
el 22 de Feb. de 2018
Hello,
based on question https://de.mathworks.com/matlabcentral/answers/96258, I have the same question for R2017b. I've already found following resources:
- https://de.mathworks.com/help/ecoder/ug/debug-code-during-sil-simulations.html
- https://de.mathworks.com/help/simulink/sfg/debugging-c-mex-s-functions.html
- https://blogs.mathworks.com/simulink/2012/12/06/debugging-cc-s-functions
I've got two question:
- Is there a difference when using the newly added MinGW compiler?
- Can Visual Studio be used with MinGW? Is Visual Studio the correct tool? Or is there a maybe an alternative GNU debugger?
Thanks a lot in advance! Thomas
0 comentarios
Respuesta aceptada
Niwin Anto
el 22 de Feb. de 2018
Source-level debugging for SIL is enabled S-Function is only supported when the code is compiled with the Microsoft Visual C++ (MSVC) or Microsoft Windows SDK 7.1 compiler. So use any of these 2 compilers and use Visual Studio to debug.
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Deployment, Integration, and Supported Hardware en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!