Hello Bohdan,

 

Answers for your questions:

 

 

 

BTW, we are cleaning up the implementation, for example, when PRoT partitions run under a privileged level, the MPU region settings actually no longer needed. Hope that would help the code reading.

 

BR

 

/Ken

 

From: Bohdan.Hunko--- via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Thursday, October 20, 2022 8:38 PM
To: tf-m@lists.trustedfirmware.org
Cc: Roman.Mazurak@infineon.com
Subject: [TF-M] an521 L3 protection setting questions

 

Hi all,

 

I have a few questions regarding an521 platform protection settings for Level 3 isolation.

 

In platform/ext/target/arm/mps2/an521/tfm_hal_isolation.c there is an const static struct mpu_armv8m_region_cfg_t region_cfg[] – for L3 it specifies to protect:

 

Also in this file mpu_armv8m_enable() function call specifies PRIVILEGED_DEFAULT_ENABLE for MPU.

 

I have following question to this configuration

 

 

 

Regards,

Bohdan Hunko

 

Cypress Semiconductor Ukraine

Engineer

CSUKR CSS ICW SW FW

Mobile: +38099 50 19 714
Bohdan.Hunko@infineon.com