Skip to content

Commit

Permalink
Merge branch 'bugfix/warn_rc32k_use_v5.3' into 'release/v5.3'
Browse files Browse the repository at this point in the history
fix(clk): warn the users to avoid using RC32K clock (v5.3)

See merge request espressif/esp-idf!33501
  • Loading branch information
jack0c committed Sep 21, 2024
2 parents fe0e852 + a9fcf0d commit f41a395
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 2 deletions.
4 changes: 4 additions & 0 deletions components/esp_hw_support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ if(${target} STREQUAL "esp32c6")
list(APPEND priv_requires hal)
endif()

if(CONFIG_RTC_CLK_SRC_INT_RC32K)
message(WARNING "Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.")
endif()

set(srcs "cpu.c" "port/${IDF_TARGET}/esp_cpu_intr.c" "esp_memory_utils.c" "port/${IDF_TARGET}/cpu_region_protect.c")
if(NOT BOOTLOADER_BUILD)
list(APPEND srcs "esp_clk.c"
Expand Down
3 changes: 3 additions & 0 deletions components/esp_hw_support/port/esp32c6/Kconfig.rtc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ choice RTC_CLK_SRC
select ESP_SYSTEM_RTC_EXT_OSC
config RTC_CLK_SRC_INT_RC32K
bool "Internal 32kHz RC oscillator"
help
Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.
This option will be removed in IDF v6.0.
endchoice

config RTC_CLK_CAL_CYCLES
Expand Down
3 changes: 3 additions & 0 deletions components/esp_hw_support/port/esp32h2/Kconfig.rtc
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ choice RTC_CLK_SRC
select ESP_SYSTEM_RTC_EXT_OSC
config RTC_CLK_SRC_INT_RC32K
bool "Internal 32kHz RC oscillator"
help
Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.
This option will be removed in IDF v6.0.
endchoice

config RTC_CLK_CAL_CYCLES
Expand Down
3 changes: 3 additions & 0 deletions components/esp_hw_support/port/esp32p4/Kconfig.rtc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ choice RTC_CLK_SRC
select ESP_SYSTEM_RTC_EXT_XTAL
config RTC_CLK_SRC_INT_RC32K
bool "Internal 32kHz RC oscillator"
help
Internal RC32K clock is unstable at extreme temperatures and is not recommended for use.
This option will be removed in IDF v6.0.
endchoice

config RTC_CLK_CAL_CYCLES
Expand Down
4 changes: 2 additions & 2 deletions components/esp_hw_support/test_apps/dma/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C5 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |
| Supported Targets | ESP32-C2 | ESP32-C3 | ESP32-C6 | ESP32-H2 | ESP32-P4 | ESP32-S2 | ESP32-S3 |
| ----------------- | -------- | -------- | -------- | -------- | -------- | -------- | -------- |

0 comments on commit f41a395

Please sign in to comment.