Error thrown while opening autosar dictionary "Empty Autosar Root"

조회 수: 16 (최근 30일)
Arvind
Arvind 2025년 12월 4일
답변: Ayush 2025년 12월 8일
Hi all, I am facing this wiered issue that Autosar Dictionary in opeing in the simulink and the error is throw "Empty Autosar Root". I am not able to update the code mappings as well. This is first time I am seeing this. I import autosar arxml into simulink and then build model on top of it.

답변 (1개)

Ayush
Ayush 2025년 12월 8일
Hi Arvind,
I understand you’re seeing the "Empty AUTOSAR Root" error in the AUTOSAR Dictionary, which is preventing you from updating code mappings. This usually happens when Simulink’s internal AUTOSAR data becomes corrupted or missing.
To resolve this, please try resetting the AUTOSAR Dictionary:
  1. Open your model in Simulink.
  2. In the MATLAB Command Window, enter:
autosar.api.create(bdroot, 'default')
or
autosar.api.create(bdroot, 'init')
This will reinitialize the AUTOSAR meta model for your model.
3. Reopen the AUTOSAR Dictionary and check if the issue is resolved.
Please note: If your model was imported from an ARXML file and you notice any unintended changes, reload the ARXML to restore your settings.
You can also refer to the following MATLAB documentation about the AUTOSAR "create" API:
Hope this helps.

카테고리

Help CenterFile Exchange에서 AUTOSAR Blockset에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by