We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi
Using STM32f4 Board, I am enabling MPU in between any code (simple program) always causing memory management fault on debugging fault that (
IACCVIOL) bit is set, It means
Attempting to execute an instruction from a memory region marked as Non-Executable
(XN).
why this problem occur with enabling MPU not by without using MPU?
Demonstrate the code for enabling MPU which you use in your program.