This is an automated email from the ASF dual-hosted git repository.

GUIDINGLI pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 857a20c7d229432e6a20d5be3dac75283d12f7c6
Author: raiden00pl <[email protected]>
AuthorDate: Wed Nov 18 11:23:19 2026 +0100

    arch/arm/armv8-m: Fix the CACR address.
    
    The L1 Cache Control Register of the Cortex-M55 and Cortex-M85 is at
    0xe001e008, not at the Cortex-M7 address 0xe000ef9c.  It is written
    when the D-cache is enabled in write-through mode.
    
    Assisted-by: Claude:claude-opus-5-5
    Signed-off-by: raiden00pl <[email protected]>
---
 arch/arm/src/armv8-m/nvic.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/src/armv8-m/nvic.h b/arch/arm/src/armv8-m/nvic.h
index 0df6a9e60db..f6576d016e4 100644
--- a/arch/arm/src/armv8-m/nvic.h
+++ b/arch/arm/src/armv8-m/nvic.h
@@ -285,7 +285,6 @@
 #define NVIC_ITCMCR_OFFSET              0x0f90 /* Instruction Tightly-Coupled 
Memory Control Register */
 #define NVIC_DTCMCR_OFFSET              0x0f94 /* Data Tightly-Coupled Memory 
Control Registers */
 #define NVIC_AHBPCR_OFFSET              0x0f98 /* AHBP Control Register */
-#define NVIC_CACR_OFFSET                0x0f9c /* L1 Cache Control Register */
 #define NVIC_AHBSCR_OFFSET              0x0fa0 /* AHB Slave Control Register */
 #define NVIC_ABFSR_OFFSET               0x0fa8 /* Auxiliary Bus Fault Status */
 
@@ -302,6 +301,10 @@
 #define NVIC_CID2_OFFSET                0x0ff8 /* Component identification 
register bits 23:16 (CID0) */
 #define NVIC_CID3_OFFSET                0x0ffc /* Component identification 
register bits 23:16 (CID0) */
 
+/* Cortex-M55 and Cortex-M85 implementation defined registers */
+
+#define NVIC_CACR_OFFSET                0x10008 /* L1 Cache Control Register */
+
 /* NVIC register addresses **************************************************/
 
 #define NVIC_ICTR                       (ARMV8M_NVIC_BASE + NVIC_ICTR_OFFSET)

Reply via email to