Autosar Code generation with Matlab 2020

3 次查看(过去 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.

回答(1 个)

Pooja Kumari
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:
  1. You can create a SIL block after building the code.
  2. 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
  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.
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

类别

Help CenterFile Exchange 中查找有关 AUTOSAR Blockset 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by