From 094355d4f1144ad28684deab5167d8e203cbe459 Mon Sep 17 00:00:00 2001 From: Christian Mauderer Date: Fri, 11 Aug 2023 07:37:34 +0200 Subject: bsps/arm/imxrt: Optimize nocache memory settings The nocache-memory was set as device memory. It's not necessary to be that strict. Set it to normal non-cacheable non-shareable memory instead. --- bsps/arm/imxrt/start/mpu-config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bsps/arm') diff --git a/bsps/arm/imxrt/start/mpu-config.c b/bsps/arm/imxrt/start/mpu-config.c index a8f98f1c81..93a4cb08e4 100644 --- a/bsps/arm/imxrt/start/mpu-config.c +++ b/bsps/arm/imxrt/start/mpu-config.c @@ -53,13 +53,13 @@ BSP_START_DATA_SECTION const ARMV7M_MPU_Region_config .begin = imxrt_memory_extram_nocache_begin, .end = imxrt_memory_extram_nocache_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) - | ARMV7M_MPU_RASR_TEX(0x2) + | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_ENABLE, }, { .begin = imxrt_memory_ocram_nocache_begin, .end = imxrt_memory_ocram_nocache_end, .rasr = ARMV7M_MPU_RASR_AP(0x3) - | ARMV7M_MPU_RASR_TEX(0x2) + | ARMV7M_MPU_RASR_TEX(0x1) | ARMV7M_MPU_RASR_ENABLE, }, { .begin = imxrt_memory_peripheral_begin, -- cgit v1.2.3