MPU setup definition access to region

Hi! Tell me please, if I define some region in MPU setup as Read Only and nothing else, can I write there running in privileged mode?

No, you will not be able to. However, you can define a region as portMPU_REGION_PRIVILEGED_READ_WRITE_UNPRIV_READ_ONLY and then unprivileged code will be able to only read and privilege code will be able to read/write.

2 Likes