Skip to content

Commit b5ba537

Browse files
committed
Merge branch 'feat/esp32h4_unicore_stop_other_core' into 'master'
feat(esp_system): stop other core for unicore esp32h4 See merge request espressif/esp-idf!41640
2 parents e0d86d8 + 38498e6 commit b5ba537

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)