From 5fa339fca592a9f8a06af6dc99e58069aef79572 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Fri, 20 Mar 2026 22:51:39 +0100 Subject: [PATCH] fix(mspi): enable PSRAM core clock in module clock init psram_ctrlr_ll_enable_module_clock() was missing reg_psram_core_clk_en, causing SPIMEM2 access faults after system reset. --- components/hal/esp32p4/include/hal/psram_ctrlr_ll.h | 1 + 1 file changed, 1 insertion(+) diff --git a/components/hal/esp32p4/include/hal/psram_ctrlr_ll.h b/components/hal/esp32p4/include/hal/psram_ctrlr_ll.h index e0109ac0214..54d6de3723b 100644 --- a/components/hal/esp32p4/include/hal/psram_ctrlr_ll.h +++ b/components/hal/esp32p4/include/hal/psram_ctrlr_ll.h @@ -342,6 +342,7 @@ static inline void _psram_ctrlr_ll_enable_module_clock(uint32_t mspi_id, bool en (void)mspi_id; HP_SYS_CLKRST.soc_clk_ctrl0.reg_psram_sys_clk_en = en; HP_SYS_CLKRST.peri_clk_ctrl00.reg_psram_pll_clk_en = en; + HP_SYS_CLKRST.peri_clk_ctrl00.reg_psram_core_clk_en = en; } /// use a macro to wrap the function, force the caller to use it in a critical section