From 38498e67cf95fcdb8a85043b22142674d9de8e8c Mon Sep 17 00:00:00 2001 From: Samuel Obuch Date: Thu, 28 Aug 2025 21:57:18 +0200 Subject: [PATCH] feat(esp_system): stop other core for unicore esp32h4 --- components/esp_system/port/cpu_start.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/esp_system/port/cpu_start.c b/components/esp_system/port/cpu_start.c index 2fcf7bf134..66f07141ee 100644 --- a/components/esp_system/port/cpu_start.c +++ b/components/esp_system/port/cpu_start.c @@ -683,6 +683,9 @@ NOINLINE_ATTR static void system_early_init(const soc_reset_reason_t *rst_reas) #elif CONFIG_IDF_TARGET_ESP32P4 REG_CLR_BIT(HP_SYS_CLKRST_SOC_CLK_CTRL0_REG, HP_SYS_CLKRST_REG_CORE1_CPU_CLK_EN); REG_SET_BIT(HP_SYS_CLKRST_HP_RST_EN0_REG, HP_SYS_CLKRST_REG_RST_EN_CORE1_GLOBAL); +#elif CONFIG_IDF_TARGET_ESP32H4 + REG_CLR_BIT(PCR_CORE1_CONF_REG, PCR_CORE1_CLK_EN); + REG_SET_BIT(PCR_CORE1_CONF_REG, PCR_CORE1_RST_EN); #endif // CONFIG_IDF_TARGET_ESP32 #endif // !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE #endif // SOC_CPU_CORES_NUM > 1