- You can create a SIL block after building the code.
- You cannot set an AUTOSAR target and then create a SIL Test Harness from a standard subsystem block. You can however, use a model reference instead of a subsystem to achieve this functionality. This may be misleading when reading this section of the doc: https://www.mathworks.com/help/releases/R2019a/ecoder/ug/configuring-a-sil-or-pil-simulation.html#bsf5v22.brr9t4r-3
- You can create a SIL or PIL block for a component configured for the AUTOSAR system target file. However, SIL and PIL block verification does not support code generated for Simulink Function and Function Caller blocks, for example, in AUTOSAR client-server configurations.
Autosar Code generation with Matlab 2020
4 次查看(过去 30 天)
显示 更早的评论
Hello,
I am trying to generate a C code which is compliant with autosar but I get the following error:
Configuring a subsystem as an AUTOSAR SW-Component is not supported. Please convert the subsystem to a model and then configure the model as an AUTOSAR SW-Component.
Any idea on how to proceed to resolve this issue ? Thank you.
0 个评论
回答(1 个)
Pooja Kumari
2024-5-8
Hi Nour,
I understand you are facing "Configuring a subsystem as an AUTOSAR SW-Component is not supported. Please convert the subsystem to a model and then configure the model as an AUTOSAR SW-Component" error when trying to generate a C code. You can refer to the below workaround for solving the issue:
For more information, you can refer to the below documentatio on verifying AUTOSAR Code: https://www.mathworks.com/help/autosar/ug/verifying-the-autosar-code-with-sil-and-pil-simulations.html
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!