From a9c78245a0868406ecc3241c7f5822b907c95565 Mon Sep 17 00:00:00 2001 From: Song Ruo Jing Date: Mon, 15 May 2023 11:43:45 +0800 Subject: [PATCH] clk: Add warning log if RC_FAST clock calibration is needed on esp32h2 --- components/esp_hw_support/port/esp_clk_tree_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/esp_hw_support/port/esp_clk_tree_common.c b/components/esp_hw_support/port/esp_clk_tree_common.c index 71a3ec507c..4ce76b0631 100644 --- a/components/esp_hw_support/port/esp_clk_tree_common.c +++ b/components/esp_hw_support/port/esp_clk_tree_common.c @@ -152,6 +152,10 @@ uint32_t esp_clk_tree_rc_fast_get_freq_hz(esp_clk_tree_src_freq_precision_t prec if (precision == ESP_CLK_TREE_SRC_FREQ_PRECISION_APPROX) { return SOC_CLK_RC_FAST_FREQ_APPROX; } +// Re-evaluate this when H2 ECO2 is back IDF-7229 +#if CONFIG_IDF_TARGET_ESP32H2 + ESP_HW_LOGW(TAG, "RC_FAST(FOSC) clock calibration is expected to have significant hardware change in the near future, don't use it for mass production. Upgrade IDF version to support the updated hardware."); +#endif #if SOC_CLK_RC_FAST_D256_SUPPORTED // If RC_FAST_D256 clock exists, calibration on a slow freq clock is much faster (less slow clock cycles need to wait) return esp_clk_tree_rc_fast_d256_get_freq_hz(precision) << 8;