빌드 에러 문의 건

32 次查看(过去 30 天)
범식 이
범식 이 2024-7-8
编辑: Giacomo 2024-9-24,7:31
오류:The call to autosar_make_rtw_hook, during the entry hook generated the following error:
Short name 'FlushHandle_Impl' (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name 'FlushHandle_Impl' (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
The build process will terminate as a result.
원인:
Short name 'FlushHandle_Impl' (Package /Components/SwcImplementations/FlushHandle_Impl) failed uniqueness tests, because short name 'FlushHandle_Impl' (SwcImplementation /Components/SwcImplementations/FlushHandle_Impl) already exists. AUTOSAR constraint 2508 (CONSTR_2508) requires uniqueness tests to be case insensitive. To comply with the constraint, change one of the short names.
이런 에러가 있는대 어떻게 수정하면 될까요?

回答(1 个)

Angelo Yeo
Angelo Yeo 2024-7-8
안녕하세요. AUTOSAR 제약 조건 2508(CONSTR_2508)에 따르면, 단축 이름은 대소문자를 구분하지 않고 고유해야 합니다. 따라서, 이 문제를 해결하려면 하나의 단축 이름을 변경하거나 삭제해야 합니다.
Short name은 ApplicationDataType 혹은 ImplementationDataType 중 하나에서 중복될 수 있는데, 아래와 같이 입력하여 중복되는 DataType이 있는지 확인해보십시오.
arProps = autosar.api.getAUTOSARProperties(bdroot);
appDtType = arProps.find([],'ApplicationDataType','PathType','FullyQualified')'
impDtType = arProps.find([],'ImplementationDataType','PathType','FullyQualified')'
중복되는 short name을 찾으셨다면 AUTOSAR의 delete API를 이용하셔서 중복되는 element를 삭제해보시기 바랍니다.
만약 위 방법으로 문제가 해결되지 않는다면 모델 및 구체적인 재현 방법과 함께 매스웍스 기술지원팀에 연락하여 도움 받으시기 바랍니다.
  2 个评论
범식 이
범식 이 2024-8-21
>> arProps = autosar.api.getAUTOSARProperties(bdroot);
>> appDtType = arProps.find([],'ApplicationDataType','PathType','FullyQualified')'
다음 사용 중 오류가 발생함: autosar.api.getAUTOSARProperties/find
For AUTOSAR architecture models, autosar.api.getAUTOSARProperties functions can be used only to get and set valid XML options.
>> impDtType = arProps.find([],'ImplementationDataType','PathType','FullyQualified')'
다음 사용 중 오류가 발생함: autosar.api.getAUTOSARProperties/find
For AUTOSAR architecture models, autosar.api.getAUTOSARProperties functions can be used only to get and set valid XML options
이런 에러가 뜨는대 어떻게 수정해야 될까요?
Giacomo
Giacomo 2024-9-24,7:31
编辑:Giacomo 2024-9-24,7:31
Hello, I have the same exact issue, in your answer you suggest to use AUTOSAR Delete API. I have tried to use it:
>>impDtType = find(arProps,[],'ImplementationDataType','PathType','FullyQualified');
impDtType =1×319 cell array
>>impDtType1=impDtType{286}
>> delete(arProps,impDtType1);
at the delete command I then get the error:
"Error using autosar.api.getAUTOSARProperties/delete
Found more than one AUTOSAR element at the partially qualified path '/DataTypes/Adt_AB_Anzeige', please specify a fully qualified path instead. Valid fully qualified paths
are '/DataTypes/Adt_AB_Anzeige', '/DataTypes/Adt_AB_Anzeige'."
My problem is that the path is already full qualified, the 2 paths proposed in the error message are the same and I cannot find a way to differentiate them. Does anyone has some advice, thanks.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by