From c3d7b1c978f8b462dcbdda998dbaefa981b3d089 Mon Sep 17 00:00:00 2001 From: Sven Ginka Date: Sat, 1 Jun 2024 18:57:52 +0200 Subject: [PATCH] soc: atmel: sam: Add invalidate d-cache at z_arm_platform_init Before that fix, the SOC was unable to boot properly. Starting turned directly into z_arm_usage_fault(). Fixes zephyrproject-rtos#73485 Signed-off-by: Sven Ginka --- soc/atmel/sam/same70/soc.c | 1 + soc/atmel/sam/samv71/soc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/soc/atmel/sam/same70/soc.c b/soc/atmel/sam/same70/soc.c index ba3a44e875a..4db92e8cebf 100644 --- a/soc/atmel/sam/same70/soc.c +++ b/soc/atmel/sam/same70/soc.c @@ -122,6 +122,7 @@ void z_arm_platform_init(void) * sys_cache*-functions can enable them, if requested by the * configuration. */ + SCB_InvalidateDCache(); SCB_DisableDCache(); /* diff --git a/soc/atmel/sam/samv71/soc.c b/soc/atmel/sam/samv71/soc.c index c1b58bc126e..e5129e30e80 100644 --- a/soc/atmel/sam/samv71/soc.c +++ b/soc/atmel/sam/samv71/soc.c @@ -119,6 +119,7 @@ void z_arm_platform_init(void) * sys_cache*-functions can enable them, if requested by the * configuration. */ + SCB_InvalidateDCache(); SCB_DisableDCache(); /*