Configure AUTOSAR SwAddrMethod for DATA

For a simulink model mapped to AUTOSAR software component, I associated for a data store ¨test_count¨ which is mapped to AUTOSAR static memory then create SwAddrMethods in that model to group this data store into a defined memory section.
The generated ARXML description and definition was appropriate. In the C code, the #define and #include statements provides wrapper around the data belonging this SwAddrMethod memory section is OK.
/**************************************************/
/* SwAddrMethod VAR for Internal Data */
#define autosar_swc_counter_START_SEC_VAR
#include "autosar_swc_counter_MemMap.h"
volatile my_qualifier boolean test_count;
#define autosar_swc_conter_STOP_SEC_VAR
#include "autosar_swc_counter_MemMap.h"
/**************************************************/
However, The init runnable shows the portion of the code below that initializes the data store each time we run the SW. But I don't want it to be initialized at all bevause each time we have a Soft reset the value will be set to FALSE/TRUE and this is not the required behavior.
/**************************************************/
FUNC(void, TestModel_CODE) Run_TestModel_Init(void)
{
/* Unstructured storage class initialization */
test_count = false;
}
/***************************************************/
Is there a way to exclude this signal from the init event during the code generation in MATLAB simulink model?

Risposte (0)

Prodotti

Richiesto:

il 30 Ott 2019

Community Treasure Hunt

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

Start Hunting!

Translated by