Skip to content

Commit 38498e6

Browse files
committed
feat(esp_system): stop other core for unicore esp32h4
1 parent 747c172 commit 38498e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

components/esp_system/port/cpu_start.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -683,6 +683,9 @@ NOINLINE_ATTR static void system_early_init(const soc_reset_reason_t *rst_reas)
683683
#elif CONFIG_IDF_TARGET_ESP32P4
684684
REG_CLR_BIT(HP_SYS_CLKRST_SOC_CLK_CTRL0_REG, HP_SYS_CLKRST_REG_CORE1_CPU_CLK_EN);
685685
REG_SET_BIT(HP_SYS_CLKRST_HP_RST_EN0_REG, HP_SYS_CLKRST_REG_RST_EN_CORE1_GLOBAL);
686+
#elif CONFIG_IDF_TARGET_ESP32H4
687+
REG_CLR_BIT(PCR_CORE1_CONF_REG, PCR_CORE1_CLK_EN);
688+
REG_SET_BIT(PCR_CORE1_CONF_REG, PCR_CORE1_RST_EN);
686689
#endif // CONFIG_IDF_TARGET_ESP32
687690
#endif // !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE
688691
#endif // SOC_CPU_CORES_NUM > 1

0 commit comments

Comments
 (0)