Hi ZhangJennie !
Now I'm not add any PPB area configuration to SAU tab.
But PPB area of nonsecure side can be added to it and ConfigTool generate code.
SAU tab generate warning only and do not have any hard protection.
I can see generated code in tzm_config.c
#define REGION_5_BASE 0xE0000000U
#define REGION_5_END 0xE003FFFFU
/* Set SAU region number */
SAU->RNR = 0x00000005U;
/* Region base address */
SAU->RBAR = REGION_5_BASE & SAU_RBAR_BADDR_Msk;
/* Region end address */
SAU->RLAR = ((REGION_5_END & SAU_RLAR_LADDR_Msk) | ((0U << SAU_RLAR_NSC_Pos) & SAU_RLAR_NSC_Msk)) | ((1U << SAU_RLAR_ENABLE_Pos) & SAU_RLAR_ENABLE_Msk);
But if I specify this area as NS, I have quite often fault like this :
Entering HardFault interrupt!
SCB->BFSR:PRECISERR fault: Precise data access error.
Address that caused secure bus violation is 0xE000ED90.
I have got conclusions that PPB area is always accessible on non-secure side by default.
If it configured in SAU, it cause some problem for Secure side what also can access this area using non-secure address range.
But in any case those rules are not mentioned anywhere.
Why non-secure side has default access to PPB ?
Regards,
Eugene