前言:
The Memory Mapping (MemMap) module is used to map code and data to specific memory sections via memory
mapping files. MemMap generates specific header files which contain memory mapping preprocessor defined
for MemorySection elements and compiler-specific instructions.
(内存映射(MemMap)模块用于通过内存映射文件将代码和数据映射到特定的内存部分。MemMap生成特定的头文件,其中包含为MemorySection元素和编译器特定指令定义的内存映射预处理器。)
上面是比较官方的回答,说人话就是把数据和代码放在ECU内指定的地址。
初级应用:软件中的bss,data,rodata,code,text段需要在memory layout中划分具体的物理地址,对于多核系统,要将执行的数据和代码放在目标核的RAM和ROM。
高阶应用:出于功能安全的考虑,通常需要对不同作用的模块(Cdd,BSW,MCAL,SWC)制定ASIL等级,不同等级他们对应的内存分区也不一样。QM级别模块是不能访问ASIL级别的模块内容的。更进阶的可以应用MPU,对不同等级的模块做内存保护,防止跨域访问。
配置过程中使用到的工具如下:
Compiler:Tasking
MCU: Infinenon TCxxx
BSW configuration Tools: EB tresos 28.2.0
RTE configuration Tools: AUTOSAR builder