[PATCH rtems 3/3] bsps/arm/imxrt: Optimize nocache memory settings

Christian Mauderer christian.mauderer at embedded-brains.de
Fri Aug 11 05:37:34 UTC 2023


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

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,
-- 
2.35.3



More information about the devel mailing list