필터 지우기
필터 지우기

AUTOSAR types mapping in code generation

조회 수: 4 (최근 30일)
Francesco Dini
Francesco Dini 2021년 9월 1일
편집: Francesco Dini 2021년 9월 1일
Hello,
I'm developing an AUTOSAR model following this process:
  1. Importing the model from third party .arxml file
  2. Applying modification to the model in Simulink
  3. Generating C code from Simulink
Inside the .arxml from wich I import the model I see the following lines:
<SHORT-NAME>TypeMapping_General</SHORT-NAME>
<DATA-TYPE-MAPS>
.....
<DATA-TYPE-MAP>
<APPLICATION-DATA-TYPE-REF DEST="APPLICATION-PRIMITIVE-DATA- TYPE">/DataTypes/AdtLowPowerVoting</APPLICATION-DATA-TYPE-REF>
<IMPLEMENTATION-DATA-TYPE-REF DEST="IMPLEMENTATION-DATA-TYPE">/DataTypes/IdtLowPowerVoting</IMPLEMENTATION-DATA-TYPE-REF>
</DATA-TYPE-MAP>
......
So what I expected to happen inside generated .c/.h files was that all the input/output ports defined inside the model that were declared using application data type "AdtLowPowerVoting" were replaced inside source C code with implementation data type "IdtLowPowerVoting", but this does not happen, in fact inside generated code I find a lot of AdtLowPowerVoting variables declaration (and what I've just described happens for all the Adt/Idt pairs declared in DATA-TYPE-MAP in .arxml file). Does anyone know how to let Idt data type to replace Adt type inside generated code? Which properties should I check? Thanks in advance for any help,
Francesco

답변 (0개)

카테고리

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

태그

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by