Is there any way to avoid root-level ports being optimized away when generating AUTOSAR code using Embedded Coder?
When trying to run a SIL simulation of my model, I get errors about unknown type names like:
...modelpath_autosar_rtw/sil/xil_interface.c:1198:8: error: unknown type name 'xyz1'
static xyz1
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...modelpath_autosar_rtw/sil/xil_interface.c:1448:8: error: unknown type name 'xyz2'
static xyz2 abc1;
^~~~~~~~~~~~~~~~~~~~
...modelpath_autosar_rtw/sil/xil_interface.c:1451:8: error: unknown type name 'xyz3'
static xyz3
^~~~~~~~~~~~~~~~~~~~
...modelpath_autosar_rtw/sil/xil_interface.c:1458:8: error: unknown type name 'xyz4'
static xyz4 abc2;
^~~~~~~~~~~~~~~~~~~
...modelpath_autosar_rtw/sil/xil_interface.c: In function 'xilInitialize':
.....
How can I avoid these errors and successfully run my model in SIL? (In MIL it runs fine.)
Additionally, when exporting my AUTOSAR architecture to ARXML and then re-importing it, I notice that some root-level ports are missing. Is there a way to preserve all ports, even if they are not used inside the components?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre AUTOSAR Blockset en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!