- 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.
- 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.
Why is there difference in Simulink Code Inspector between ert.tlc and autosar.tlc generated code?
10 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1417974/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1417979/image.png)
Is there a way to configure Code Inspector for AUTOSAR generated code?
0 Commenti
Risposte (1)
Sai Gokul
il 12 Lug 2023
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.
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!
0 Commenti
Vedere anche
Categorie
Scopri di più su AUTOSAR Blockset in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!