diff --git a/include/arch/arm/cortex_m/mpu/nxp_mpu.h b/include/arch/arm/cortex_m/mpu/nxp_mpu.h index c4b58d49b0c..7e44d068b0d 100644 --- a/include/arch/arm/cortex_m/mpu/nxp_mpu.h +++ b/include/arch/arm/cortex_m/mpu/nxp_mpu.h @@ -118,11 +118,12 @@ #define REGION_USER_RO_ATTR {(MPU_REGION_READ | \ MPU_REGION_SU)} -/* ENET device (Master 3) will not be able to access RAM when -ram region is dynamically disabled in NXP MPU. +/* ENET (Master 3) and USB (Master 4) devices will not be able +to access RAM when the region is dynamically disabled in NXP MPU. DEBUGGER (Master 1) can't be disabled in Region 0. */ #define REGION_DEBUGGER_AND_DEVICE_ATTR {((MPU_REGION_SU) | \ - ((UM_READ | UM_WRITE) << BM3_UM_SHIFT))} + ((UM_READ | UM_WRITE) << BM3_UM_SHIFT) | \ + (BM4_PERMISSIONS))} #define REGION_DEBUG_ATTR {MPU_REGION_SU} diff --git a/soc/arm/nxp_kinetis/k6x/nxp_mpu_regions.c b/soc/arm/nxp_kinetis/k6x/nxp_mpu_regions.c index 54186711bc7..1a9be3a8736 100644 --- a/soc/arm/nxp_kinetis/k6x/nxp_mpu_regions.c +++ b/soc/arm/nxp_kinetis/k6x/nxp_mpu_regions.c @@ -8,8 +8,8 @@ static const struct nxp_mpu_region mpu_regions[] = { /* Region 0 */ - /* Debugger access can't be disabled; ENET devices will not be able to - * access RAM when it's region is dynamically disabled in NXP MPU. + /* Debugger access can't be disabled; ENET and USB devices will not be able + * to access RAM when their regions are dynamically disabled in NXP MPU. */ MPU_REGION_ENTRY("DEBUGGER_0", 0,