add Code section and Auto Storage section in Simulink AUTOSAR

1 回表示 (過去 30 日間)
Kiran Kiran
Kiran Kiran 2019 年 9 月 12 日
Hello, Am using MATLAB 2015B and AUTOSAR 4.2 settings. I see that, sections for constants and volatile constants are created in code from the simulink model, like below.
/* Exported data definition */
#define ChrgCtrl_swc_START_SEC_CONST
#include "ChrgCtrl_swc_MemMap.h"
/* Definition for custom storage class: Global */
const uint16_T CCoACBatteryCapacityPrm = 86U;
#define ChrgCtrl_swc_STOP_SEC_CONST
#include "ChrgCtrl_swc_MemMap.h"
But not for below sections
The available start sections are:
<Component_name>_START_SEC_CODE
<Component_name>_START_SEC_CONST_UNSPECIFIED
<Component_name>_START_SEC_VAR_NOINIT_UNSPECIFIED
<Component_name>_START_SEC_VAR_INIT_UNSPECIFIED
<Component_name>_START_SEC_VAR_ZERO_INIT_UNSPECIFIED
Their respective stop sections are:
<Component_name>_STOP_SEC_CODE
<Component_name>_STOP_SEC_CONST_UNSPECIFIED
<Component_name>_STOP_SEC_VAR_NOINIT_UNSPECIFIED
<Component_name>_STOP_SEC_VAR_INIT_UNSPECIFIED
<Component_name>_STOP_SEC_VAR_ZERO_INIT_UNSPECIFIED
Let me know if there is a way.

回答 (0 件)

カテゴリ

Help Center および File ExchangeAUTOSAR Blockset についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by