AnsweredAssumed Answered

K66 MPU Doesn't Set

Question asked by Ramazan Toprak on Feb 16, 2017
Latest reply on Feb 16, 2017 by Hui_Ma

Hi,

 

I have a problem with MPU, MK66FN2M0VLL18. When I try to protect all memory or specific region, protection doesn't set, because I set write protected area, and this area is still unprotected. I didnt understand what is the problem.

could you share MPU example code or document.

 

 

MPU_CESR &= ~MPU_CESR_VLD_MASK;

for (i = 0; i < CORTEX_MPU_REC; i++) {
MPU_WORD(i, 2) = 0;
}

 

_kinetis_mpu_add_region(0, (unsigned char *)0xffffffff, \
MPU_WORD_M1SM(MPU_SM_RWX) | MPU_WORD_M1UM(0) | \
MPU_WORD_M0SM(MPU_SM_RWX) | MPU_WORD_M0UM(0));

 

MPU_CESR |= MPU_CESR_VLD_MASK;

 

thank you for your helps.

 

Best regards.

Outcomes