필터 지우기
필터 지우기

Rte_type.h data types generation problem

조회 수: 42 (최근 30일)
oussama
oussama 2023년 4월 20일
댓글: oussama 2023년 4월 24일
Hello,
I am using MATLAB R2020b to generate code from .slx model, the problem is that the generated Rte_type.h file have data types as (UInt8, UInt16...) but i am expecting them to be as (uint8, uint16...).
This matter is related to AUTOSAR Platform Type version according to this link :
For AUTOSAR 3.x Platform Type we have (UInt8, UInt16...) and for AUTOSAR 4.x Platform Type we have (uint8, uint16...)
So i tried to solve the problem by checking this option :
XML options > AUTOSAR Platform Types > Platform Type Names
But it turn out that it's not even exist in my model.
In the other hand the AUTOSAR schema version is equal to 4.2, which must make the code generates data types to (uint8, uint16...) according to this link :
Which one of this parameters has impact on data types in Rte_type.h file ?
Why i don't have AUTOSAR Platform Type option ?
And how can i change the Rte_type.h uint to AUTOSAR 4.2 form (uint8, uint16...) ?

채택된 답변

Philipp Diersing
Philipp Diersing 2023년 4월 21일
Hey oussama,
unfortunately, the option to specify Platform Type Names in the XmlOptions menu was introduced in R2023a, see the release notes here: AUTOSAR Blockset Release Notes.
You could upgrade to this latest version to make use of this setting.
I'd also like to point out that the Rte_Type.h file we generate is meant to be used for testing workflows like SIL within the MathWorks tools only and not for deployment. To deploy the generated code, the generated ARXML files should be used to have Rte_Type.h (and other headers like those found in the stub directory) generated by an RTE Generator, a third party tool.
I hope this answer helps.
Philipp
  댓글 수: 1
oussama
oussama 2023년 4월 24일
Thank you for your replay, that was very helpful.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by