Autosar Memory section defines in generated c code

조회 수: 43 (최근 30일)
Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari 2020년 5월 20일
댓글: Liang Zong 2022년 3월 8일
Hi I would like to generate memory section mapping #defines similar to ones in Autosar C code. I'm using Simulink for Model creation and Autosar Tool box code generator for generating code. How can i get #defines for Memmap as shown below in generated code.
#define CddSample_START_SEC_CODE
#include "CddSample_MemMap.h"
FUNC(void, CddSample_CODE) CddSample_alive_100ms (void)
{
}
#define CddSample_STOP_SEC_CODE
#include "CddSample_MemMap.h"
  댓글 수: 2
Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari 2020년 5월 22일
I found the answer, In code generation settings, Under Memory Sections select the package. Also you can define your own storage class or select existing ones.
Also need to make the Function CddSample_alive_100ms in simulink as Non-Reuseable or Reuseable in Block properties.
Liang Zong
Liang Zong 2022년 3월 8일
hi,
which matlab version are you using? i can not find "memory Sections" in 2021a.

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

답변 (1개)

Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari 2020년 6월 3일
I found the answer, In code generation settings, Under Memory Sections select the package. Also you can define your own storage class or select existing ones.
Also need to make the Function CddSample_alive_100ms in simulink as Non-Reuseable or Reuseable in Block properties.

카테고리

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

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by