フィルターのクリア

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 Center および File ExchangeAUTOSAR Blockset についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by