Autosar Code generation with Matlab 2020

4 visualizaciones (últimos 30 días)
Nour
Nour el 25 de Nov. de 2023
Respondida: Pooja Kumari el 8 de Mayo de 2024
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.

Respuestas (1)

Pooja Kumari
Pooja Kumari el 8 de Mayo de 2024
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

Categorías

Más información sobre AUTOSAR Blockset en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by