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.
View all questions in Cortex-M / M-Profile forum