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:
- 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.
- 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.