Potential conflicting usages of identifier 'XXXXYY': a data type, and the name of a top level function for the model 'XXXX'

369 views (last 30 days)
I'm getting this error when trying to build an arxml generated model.
Potential conflicting usages of identifier 'XXXXYY': a data type, and the name of a top level function for the model 'XXXX'

Answers (2)

Ayush
Ayush on 29 Aug 2023
The error message you received indicates a potential conflict in the usage of the identifier 'XXXXYY' within your model 'XXXX'. The conflict arises because 'XXXXYY' is being used as both a data type and the name of a top-level function in the model.
Here is the workflow to avoid such errors:
  1. Check for naming conflicts: Make sure there are no other variables, functions, or data types with the same name that could cause conflicts.
  2. Rename the conflicting identifier: To resolve the conflict, you need to rename either the data type or the top-level function.
  3. Update dependent components: If the renamed identifier is used in other parts of your model, such as subsystems or referenced models, make sure to update those components as well to reflect the new name.
  4. Rebuild and test: After making the necessary changes, rebuild your model and test it to ensure that the conflict has been resolved and that the model functions as expected.
Thanks,
Ayush Jaiswal

Sai Ram Anumula
Sai Ram Anumula on 24 Feb 2025
The error message you received indicates a potential conflict with the identifier 'XXXXYY' within your model 'XXXX'. This conflict occurs because 'XXXXYY' is being used as both a data type and the name of a top-level function or runnable.
To resolve this issue, follow these steps based on the origin of your model:
For Models Originating from Imported ARXML:
1. Inspect the ARXML File: Examine the ARXML file to identify where 'XXXXYY' is defined. Ensure it is not used ambiguously as both a data type and a runnable.
2. Amend the ARXML Definitions: Modify the ARXML file to resolve the conflicting usage. This might involve renaming the identifier or restructuring elements to avoid overlap.
3. Validate the ARXML: Validate the ARXML file in the 3-p tool where ARXML is being exported from to ensure compliance with AUTOSAR standards and confirm that no new conflicts are introduced.
4. Re-import the ARXML: After corrections, re-import the ARXML into your model to ensure it is built on a consistent and conflict-free.
5. Test the Model: Finally, test the model to verify that the conflict is resolved and that it functions as expected.
For Models Originating from Simulink:
1. Check for Naming Conflicts: Ensure there are no other variables, functions, or data types with the same name that could cause conflicts within the Simulink model.
2. Rename the Conflicting Identifier: If the conflict arises within Simulink, rename either the data type or the top-level function to resolve the issue.
3. Update Dependent Components: If the renamed identifier is used elsewhere in the model, such as in subsystems or referenced models, update those components accordingly.
4. Rebuild and Test: After making the necessary changes, rebuild your model and test it to ensure the conflict is resolved and the model functions as expected.
By addressing the root cause based on the origin of your model, you ensure a robust and maintainable solution that prevents similar conflicts in the future.

Categories

Find more on Multicore Processor Targets in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!