Autosar Memory section defines in generated c code

25 visualizaciones (últimos 30 días)
Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari el 20 de Mayo de 2020
Comentada: Djordje el 17 de Jul. de 2024
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"
  3 comentarios
Liang Zong
Liang Zong el 8 de Mzo. de 2022
hi,
which matlab version are you using? i can not find "memory Sections" in 2021a.
Djordje
Djordje el 17 de Jul. de 2024
I have the same issue as yours. Did you find out how to configure memory sections in your MATLAB? I am using version R2023a, and properties look like yours.
BR,
Djordje

Iniciar sesión para comentar.

Respuestas (1)

Jeevan Kumar Guntammagari
Jeevan Kumar Guntammagari el 3 de Jun. de 2020
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.

Categorías

Más información sobre AUTOSAR Blockset en Help Center y File Exchange.

Productos


Versión

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by