- 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.
Error Using p_update_read with ARXML Importer: Assertion Failed – Cannot Determine Word Length
3 次查看(过去 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!
0 个评论
回答(1 个)
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:
If that still doesn’t fix it, feel free to share the affected ARXML file so I can take a closer look.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 AUTOSAR Blockset 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!