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:
- SHORT-NAME: Unique identifier for each element.
- MEMORY-SECTION: Defines memory usage by the component.
- 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.