Hi Experts,
As I understand the MPU region is used to set various memory read/write/execute permission/background/properties. I found few application notes on "Stack memory protection using MPU". Real time usage in the SW layers has more complexity.
For Ex:
1. 13 regions for overall MPU region (actual region req will be higher)
2. Region allocation should be multiples of 2^N. (Some memory partitioning doesn't fit in the boundary)
3. Stack protection for SW involving multiple threads (more than 15 layers)
......
Is there any way to realize more on the various customization and usage of MPU for Software with more partitions, region sizes, etc.
Did you enable access to the debug registers?
// // get debug register base address // MRC p14, 0, r2, c1, c0, 0 bics r2,r2,#3 MRC p14, 0, r1, c2, c0, 0 bics r1,r1,#3 add r2,r2,r1 // // enable write access // ldr r1,=0xC5ACCE55 str r1,[r2,#0xfb0]
Oh yeah, that is the issue. After unlocking with signature it works.
Thanks !!
techguyz said:that is the issue
Please verify the answer - so that others can see that the issue is resolved: