From 11b4a14eb239a1183857b5bb65b3f1aecabc67be Mon Sep 17 00:00:00 2001 From: Frank Date: Tue, 16 Mar 2021 16:07:39 +0100 Subject: [PATCH] Fix MPU settings Two settings with the same adresse, the first with marked readonly, the 2nd as "readwrite". The 2nd has higher priority, so the first is ignored. The first is not logical anyway, because it is marked write back and readonly. May confuse the MPU? --- teensy4/startup.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/teensy4/startup.c b/teensy4/startup.c index 8a17bf608..dc70590f9 100644 --- a/teensy4/startup.c +++ b/teensy4/startup.c @@ -257,9 +257,6 @@ FLASHMEM void configure_cache(void) SCB_MPU_RBAR = 0x60000000 | REGION(i++); // QSPI Flash SCB_MPU_RASR = MEM_CACHE_WBWA | READONLY | SIZE_16M; - SCB_MPU_RBAR = 0x70000000 | REGION(i++); // FlexSPI2 - SCB_MPU_RASR = MEM_CACHE_WBWA | READONLY | NOEXEC | SIZE_256M; - SCB_MPU_RBAR = 0x70000000 | REGION(i++); // FlexSPI2 SCB_MPU_RASR = MEM_CACHE_WBWA | READWRITE | NOEXEC | SIZE_16M;