빌드 에러 문의 건

18 visualizzazioni (ultimi 30 giorni)
범식 이
범식 이 il 8 Lug 2024
Modificato: Giacomo il 24 Set 2024
오류: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.
이런 에러가 있는대 어떻게 수정하면 될까요?

Risposte (1)

Angelo Yeo
Angelo Yeo il 8 Lug 2024
안녕하세요. 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 Commenti
범식 이
범식 이 il 21 Ago 2024
>> 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 il 24 Set 2024
Modificato: Giacomo il 24 Set 2024
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.

Accedi per commentare.

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by