필터 지우기
필터 지우기

Why is there difference in Simulink Code Inspector between ert.tlc and autosar.tlc generated code?

조회 수: 12 (최근 30일)
Hi all,
I am using Code Inspector for generated code for autosar.tlc target but it fails because AUTOSAR naming functions don't match with block name. With the same model but generated for target ert.tlc I don't get errors.
-
Is there a way to configure Code Inspector for AUTOSAR generated code?

답변 (1개)

Sai Gokul
Sai Gokul 2023년 7월 12일
Hi Christian,
I understand that you want to know why generated code for different targets differ, how to configure Code Inspector for AUTOSAR generated code
The difference in the Simulink Code Inspector between ert.tlc and autosar.tlc generated code can be attributed to the different target environments and code generation strategies.
  1. Target Environment: The ert.tlc target environment is primarily used for generating code for embedded systems, whereas the autosar.tlc target environment is specifically designed for generating code compliant with the AUTOSAR (AUTomotive Open System ARchitecture) standard.
  2. Code Generation Strategy: The ert.tlc code generation strategy focuses on generating efficient and optimized code for embedded systems, while the autosar.tlc code generation strategy emphasizes adherence to the AUTOSAR standard, which includes specific rules and guidelines for automotive software development.
To configure the code inspector for AUTOSAR generated code follow the below steps
1.Open the Simulink Code Inspector: Launch the Simulink Code Inspector by selecting "Analysis > Code Review > Model Advisor" in the Simulink menu.
2.Select the AUTOSAR Configuration: In the Code Inspector window, click on the "Configuration" button. This will open the "Model Advisor Configuration" dialog box.
3.Choose the AUTOSAR profile: In the "Model Advisor Configuration" dialog box, select the appropriate AUTOSAR profile. The available profiles may vary depending on your MATLAB and Simulink version. Choose the profile that matches the AUTOSAR version and standard you are using.
4.Configure Checks and Rules: Once you have selected the AUTOSAR profile, you can enable or disable specific checks and rules by selecting or deselecting the corresponding checkboxes. The Code Inspector provides a list of checks specifically designed for AUTOSAR compliance. You can also customize the severity levels for each check according to your needs.
5.Save the Configuration: After configuring the Code Inspector settings, click on the "Save" button in the "Model Advisor Configuration" dialog box to save your changes.
You can also refer to the documentation below
Hope this helps!

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by