- Delete Existing Mapping: Use the command autosar.api.delete(bdroot) in the MATLAB Command Window to remove the current AUTOSAR mapping.
- Recreate Mapping: Open the AUTOSAR app in MATLAB (autosarApp command) and recreate the mapping for your mode
- If the issue persits, upgrade to the latest update release of R2023b or to a newer MATLAB version.
AUTOSAR Code Generation Error in 2023b
26 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
태성
am 23 Apr. 2024
Beantwortet: Mohit Kumar
am 24 Jul. 2024
Hi,
I have question because there is an error during the generation of the AUTOSAR Code
That Error comes from my laptop,
Below is the contents of the error
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1676496/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1676501/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1676506/image.png)
0 Kommentare
Akzeptierte Antwort
Pooja Kumari
am 23 Apr. 2024
Hello,
I understand you are facing "Failed to obtain property SwimplPolicy of element with type Simulink.metamodel.arplatform.interface.FlowData in file C:/Users/User/ AppData/Local/Temp/ mwslx_App_FailSafe_e274b3be_88ca_4b51_8141_8771798ad6cc/autosar/ autosar.xmi:40" error during generation of AUTOSAR Code. Here is the possible workaround for the same:
You can refer to the beloe documentation for more information on Mapping AUTOSAR adaptive elemenrs for Code Generation:
3 Kommentare
Weitere Antworten (1)
Mohit Kumar
am 24 Jul. 2024
Try Validating the Autosar Dictionary --> It will throw the same error --> Then Try opening the Autosar Dictionary it will open--> then Try validating again. No more issue present.
0 Kommentare
Siehe auch
Kategorien
Mehr zu AUTOSAR Blockset finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!