Hi Xiangjun Rong !
If I completely disable MPU block , it is not problem at all.
But if I disable Master0 in region 0
/* Invalidate Region 0 for Master 0, remove background region with wide access right. */
master0 = prvComposeRegionRightMPU(kSYSMPU_SupervisorEqualToUsermode, kSYSMPU_UserNoAccessRights);
SYSMPU_SetRegionRwxMasterAccessRights(SYSMPU, 0, 0, &master0);
Nothing dosn't work.
So for remove wide access to everything, I have splitted accesses right for master0 for multiple
Regions, e.g Flash, SRAM, etc. separately.
But Region 0 is still have full access right for Master1 ( Debug ) what can't be removed in principle.
Other Masters 2-4 I have disabled as well.
Regards,
Eugene