Error Using p_update_read with ARXML Importer: Assertion Failed – Cannot Determine Word Length

조회 수: 7 (최근 30일)
I encountered this error : Error using p_update_readAssertion failed: Cannot determine word length from infinite limits at B:\matlab\src\arxml_util\utils\FixedPt.cpp:32:
Error in p_getcomponentnames
Error in arxml.importer/getComponentNames
While trying to use the arxml.importer in MATLAB to extract component names from an ARXML file (AUTOSAR XML). The error occurs when calling getComponentNames
Has anyone encountered this ARXML import error or know how to resolve it? Any help would be appreciated!

답변 (1개)

Shlok
Shlok 2025년 7월 21일
Hi,
The error you're seeing:
Assertion failed: Cannot determine word length from infinite limits at ... FixedPt.cpp:32
sometimes happens when the arxml.importer function can’t determine the word length, because one or both of the data constraints (like <UPPER-LIMIT> or <LOWER-LIMIT>) are missing in the ARXML file.
To work around this, you could try:
  • Adding explicit upper and lower limits to the affected "DATA-CONSTR" or "SW-BASE-TYPE" entries in the ARXML.
  • Adjusting the range so it fits within a standard data type. For example, changing it to something like 0–60000 might make MATLAB assign "uint16" instead of a fixed-point type.
If that still doesn’t fix it, feel free to share the affected ARXML file so I can take a closer look.

카테고리

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

태그

제품


릴리스

R2024b

Community Treasure Hunt

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

Start Hunting!

Translated by