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

Unexpected MPU fault

Hello,
I'm facing an unexpected issue while configuring the MPU on a Cortex-M7 (STM32H7). Basically, after setting the MPU in privileged thread mode, the execution continues up to when I switch to unprivileged thread mode writing into the CONTROL register. At that point, the MemManage Fault exception is triggered, signaling a stacking and instruction violation access errors. I'm confused, did I do something conceptually wrong or it can be a bug? I'm posting the code below. I've deliberately set the regions larger than needed in an effort to debug the code.



Thank you.

0