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?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!