This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Memory Protection Unit in Keil IDE debugger not working

Hello I have a question regarding MPU and uKeil.

So basically I have following piece of code for testing read only permission:

And the problem it doesn't trigger any fault, but the thing that confuse me, is that when I upload the same code using segger embedded studio everything is working fine, I end up in mem handler with address in MMFAR register.

So do I have to do some additional settings configuration in keil debugger itself or there's another way to fix this, because I prefer Keil over SES and don't really want switch to this second one.

Also I'm using nrf52840 with cortex m4 cpu and j-link.

Thanks in advance for any thoughts.

0