Memory Mapping Error in ARXML File

6 次查看(过去 30 天)
MAHENDRAN A
MAHENDRAN A 2022-11-17
回答: Jatin 2024-10-14
I need to generate implementation.arxml file Code for a Battery model. Ive creaed the ARXML Code for that. In the code, at resource consumption line, I coudnt find the memory mapping / allocation in it. Can anyone give solution to this or how to create the line in the code

回答(1 个)

Jatin
Jatin 2024-10-14
If your code doesn't include memory mapping, you can add it yourself using the example below. Here are a few tags to keep in mind when defining memory mapping in your code:
  1. SHORT-NAME: Unique identifier for each element.
  2. MEMORY-SECTION: Defines memory usage by the component.
  3. MEMORY-SECTION-LOCATION: Specifies where memory section is located.
Here is an example code which assings memory locations for code section and data section:
<AUTOSAR>
<AR-PACKAGES>
<AR-PACKAGE>
<SHORT-NAME>BatteryModel</SHORT-NAME>
<ELEMENTS>
<COMPONENT-TYPE>
<SHORT-NAME>BatteryComponent</SHORT-NAME>
<!-- Other component details -->
<RESOURCE-CONSUMPTION>
<SHORT-NAME>MemoryMapping</SHORT-NAME>
<MEMORY-SECTION>
<SHORT-NAME>CodeSection</SHORT-NAME>
<MEMORY-SECTION-LOCATION>FLASH</MEMORY-SECTION-LOCATION>
</MEMORY-SECTION>
<MEMORY-SECTION>
<SHORT-NAME>DataSection</SHORT-NAME>
<MEMORY-SECTION-LOCATION>RAM</MEMORY-SECTION-LOCATION>
</MEMORY-SECTION>
</RESOURCE-CONSUMPTION>
</COMPONENT-TYPE>
</ELEMENTS>
</AR-PACKAGE>
</AR-PACKAGES>
</AUTOSAR>
If you're still having trouble, please upload your file here.

类别

Help CenterFile Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by