From a54197b2f81a1cdfe7e249f2381628c782b00096 Mon Sep 17 00:00:00 2001 From: Hao Luo Date: Fri, 13 Jun 2025 09:42:35 +0800 Subject: [PATCH] soc: ambiq: workaround for issue #90777 This commit workarounds issue #90777 Signed-off-by: Hao Luo --- soc/ambiq/apollo5x/soc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/soc/ambiq/apollo5x/soc.c b/soc/ambiq/apollo5x/soc.c index 8f168b19141..3ba96593fdc 100644 --- a/soc/ambiq/apollo5x/soc.c +++ b/soc/ambiq/apollo5x/soc.c @@ -48,9 +48,9 @@ void soc_early_init_hook(void) /* * Set default temperature for spotmgr to room temperature */ - am_hal_pwrctrl_temp_thresh_t dummy; + am_hal_pwrctrl_temp_thresh_t dummy[32]; - am_hal_pwrctrl_temp_update(25.0f, &dummy); + am_hal_pwrctrl_temp_update(25.0f, dummy); /* Enable Icache*/ sys_cache_instr_enable();