MPU

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).

  • On stacking in Handler, Program Counter value is Multiple of odd number, that also not possible.

why this problem occur with enabling MPU not by without using MPU?

More questions in this forum