C code MemMap.h file name change

8 visualizaciones (últimos 30 días)
Betül
Betül el 5 de Mzo. de 2024
Respondida: Sumukh el 24 de Sept. de 2024
Hello,
I am writing you to ask about modifying memory map lines in an AUTOSAR Simulink model generated using Autosar code generation.
Currently, my model name is ‘B’ and my model c code includes memory map lines in the following format:
/* SwAddrMethod CODE for Runnable */
#define B_START_SEC_CODE
#include "B_MemMap.h"
I would like to modify these lines to:
/* SwAddrMethod CODE for Runnable */
#define A_START_SEC_CODE
#include "A_MemMap.h"
Thank you for support

Respuestas (1)

Sumukh
Sumukh el 24 de Sept. de 2024
Hi Betül,
I am assuming that the code you are referring to is the AUTOSAR software address methods (SwAddrMethods) for AUTOSAR atomic components. The prefix of the “MemMap.h” header file is the “Name” value of the AUTOSAR atomic component mapped to the model. It has the name of the model by default. This name remains the same when the model’s name is modified. You can follow the below steps to change the AUTOSAR component name:
  • Open “AUTOSAR Component Designer” app from the “Apps” tab in the Simulink Toolstrip.
  • Select “Code Interface” > “AUTOSAR Dictionary” to configure the AUTOSAR dictionary.
  • Select the “AtomicComponents” tab in the “AUTOSAR” tree and modify the “Name” value of the component from “B” to “A”.
  • Close the dictionary and generate the code for the model.
The dictionary will replace the prefix of the header file from “B” to “A”. This name does not depend on the model’s name and can be modified as necessary. You can refer to the following documentation to know more about the AUTOSAR atomic components:
I hope this answers your query.

Categorías

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

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by