Part Number: TM4C129ENCPDT
Tool/software: TI C/C++ Compiler
Hi everyone,
my question is about MPU, i want to protect NVIC_NVIC_MPU_ATTR, after configuring the mpu and protecting this address with 32B, it seems it is not protected because when i try to write on this address it does not give me mpu fault error. where is the problem?
Error_Block eb;
Error_init(&eb);
Hwi_create(FAULT_MPU, MpuIntHandler, NULL, &eb);
MPU_RegionSet(3, 0xE000EDA0,
MPU_RGN_SIZE_32B |
MPU_RGN_PERM_EXEC|
MPU_RGN_PERM_PRV_RO_USR_RO|
MPU_RGN_DISABLE);
MPU_RegionEnable(3);
IntEnable(FAULT_MPU);
MPU_Enable(MPU_CONFIG_PRIV_DEFAULT);