Clearing Cache for AUTOSAR components

6 views (last 30 days)
In the bottom up AUTOSAR development approach, where the Simulink model is created first and ARXML is generated out of it with the AUTOSAR blockset - If any of the settings are modified in the AUTOSAR Dictionary (For Eg. Under CompuMethods, if the Simulink Datatype is moved from one Compu Method to another), the generated ARXML has both the older settings and new settings.
In the example mentioned above, related to compu methods, the generated ARXML has both the compu methods linked to it.
This issue is resolved, if we create a new model and setup the AUTOSAR properties from the scratch.
Is there a simpler way to clear the AUTOSAR settings cache ?

Answers (1)

Vidip Jain
Vidip Jain on 31 Aug 2023
I understand if the settings are modified in the AUTOSAR Dictionary, the generated ARXML has both the older settings and new settings.
The behaviour you described might be related to how the AUTOSAR Dictionary and ARXML generation work. When changes are made to the AUTOSAR settings within the dictionary, the ARXML generation might not always immediately reflect these changes due to caching or other internal processes.
While there's no direct "clear cache" option in the AUTOSAR Blockset for Simulink, you can try the following approaches to address the issue:
  1. Update AUTOSAR Dictionary: After making changes to the AUTOSAR settings within the dictionary, manually update the dictionary. This might refresh the settings and ensure that they are correctly reflected in the ARXML generation process.
  2. Re-Generate ARXML: If the updated AUTOSAR settings are not reflected in the generated ARXML, try regenerating the ARXML from your Simulink model. This process might incorporate the latest changes from the dictionary.

Categories

Find more on AUTOSAR Blockset in Help Center and File Exchange

Products


Release

R2021b

Community Treasure Hunt

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

Start Hunting!