필터 지우기
필터 지우기

Autosar Code generation with Matlab 2020

조회 수: 3 (최근 30일)
Nour
Nour 2023년 11월 25일
답변: Pooja Kumari 2024년 5월 8일
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