AUTOSAR的MPU内存保护

AUTOSAR的MPU内存保护

Q:How can I configure MPU(Memory Protection Unit) for an OS_Task in Vector AUTOSAR Conguration Tool?

A:

For a configured task, you configure OsTaskMemoryProtectionIdentifier to specify a memory protection identifier for the task. you set the protection ID.

If this parameter is not set but the owner OS-Application has a memory protection identifier specified this value will be used for the task.

Memory protection identifier are configured inside Os/OsPublishedInformation/OsDerivativeInformation/OsMemoryRegionSpecifics

Depending on the used platform protection identifiers are also referred as PID (MPC), ASID (RH850) or protection sets (TriCore)

 
answered Jan 5, 2021 at 20:08

You can find a high level guide in section "3.17 Memory Protection" of TechnicalReference_Os.pdf in your SIP. Please work through this and then feel free to ask specific questions. However, then we will need a lot more information, which you probably cannot write in public here. 

– Torsten Knodt

 CommentedSep 14, 2021 at 15:35

 

对于已配置的任务,您可以配置OsTaskMemoryProtectionIdentifier为该任务指定内存保护标识符。您可以设置保护ID。

如果未设置此参数,但所有者OS-Application指定了内存保护标识符,则该值将用于任务。

内存保护标识符在Os/OsPublishedInformation/OsDerivativeInformation/OsMemoryRegionSpecifics内部配置

根据使用的平台,保护标识符也称为PID (MPC)、ASID (RH850)或保护集(TriCore)。