mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
Merge branch 'bugfix/esp32s3_app_core_clock_gate_invalid_issue' into 'master'
fix app cpu core clock gate invalid issue Closes WIFI-3899 See merge request espressif/esp-idf!14518
This commit is contained in:
@@ -414,7 +414,13 @@ void IRAM_ATTR call_start_cpu0(void)
|
|||||||
DPORT_CLEAR_PERI_REG_MASK(DPORT_APPCPU_CTRL_B_REG, DPORT_APPCPU_CLKGATE_EN); // stop the other core
|
DPORT_CLEAR_PERI_REG_MASK(DPORT_APPCPU_CTRL_B_REG, DPORT_APPCPU_CLKGATE_EN); // stop the other core
|
||||||
#elif CONFIG_IDF_TARGET_ESP32S3
|
#elif CONFIG_IDF_TARGET_ESP32S3
|
||||||
REG_CLR_BIT(SYSTEM_CORE_1_CONTROL_0_REG, SYSTEM_CONTROL_CORE_1_CLKGATE_EN);
|
REG_CLR_BIT(SYSTEM_CORE_1_CONTROL_0_REG, SYSTEM_CONTROL_CORE_1_CLKGATE_EN);
|
||||||
|
#if SOC_APPCPU_HAS_CLOCK_GATING_BUG
|
||||||
|
/* The clock gating signal of the App core is invalid. We use RUNSTALL and RESETING
|
||||||
|
signals to ensure that the App core stops running in single-core mode. */
|
||||||
|
REG_SET_BIT(SYSTEM_CORE_1_CONTROL_0_REG, SYSTEM_CONTROL_CORE_1_RUNSTALL);
|
||||||
|
REG_CLR_BIT(SYSTEM_CORE_1_CONTROL_0_REG, SYSTEM_CONTROL_CORE_1_RESETING);
|
||||||
#endif
|
#endif
|
||||||
|
#endif // CONFIG_IDF_TARGET_ESP32
|
||||||
#endif // !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE
|
#endif // !CONFIG_ESP_SYSTEM_SINGLE_CORE_MODE
|
||||||
#endif // SOC_CPU_CORES_NUM > 1
|
#endif // SOC_CPU_CORES_NUM > 1
|
||||||
|
|
||||||
|
@@ -28,6 +28,9 @@
|
|||||||
#define SOC_FLASH_ENCRYPTION_XTS_AES_256 1
|
#define SOC_FLASH_ENCRYPTION_XTS_AES_256 1
|
||||||
#define SOC_PSRAM_DMA_CAPABLE 1
|
#define SOC_PSRAM_DMA_CAPABLE 1
|
||||||
|
|
||||||
|
/*-------------------------- SOC CAPS ----------------------------------------*/
|
||||||
|
#define SOC_APPCPU_HAS_CLOCK_GATING_BUG (1)
|
||||||
|
|
||||||
/*-------------------------- ADC CAPS ----------------------------------------*/
|
/*-------------------------- ADC CAPS ----------------------------------------*/
|
||||||
#define SOC_ADC_PERIPH_NUM (2)
|
#define SOC_ADC_PERIPH_NUM (2)
|
||||||
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) (10)
|
#define SOC_ADC_CHANNEL_NUM(PERIPH_NUM) (10)
|
||||||
|
Reference in New Issue
Block a user