From 7cd7056341f37ecae94cedb5df7e9656f8105f19 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 14 Nov 2022 10:11:18 +0800 Subject: [PATCH 1/2] hw-support: update C2 chip info to reflect that esp8684 has embedded flash Closes https://github.com/espressif/esp-idf/issues/10175 --- components/esp_hw_support/port/esp32c2/chip_info.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/esp_hw_support/port/esp32c2/chip_info.c b/components/esp_hw_support/port/esp32c2/chip_info.c index 827e76aa66..74057a5f70 100644 --- a/components/esp_hw_support/port/esp32c2/chip_info.c +++ b/components/esp_hw_support/port/esp32c2/chip_info.c @@ -14,5 +14,5 @@ void esp_chip_info(esp_chip_info_t *out_info) out_info->model = CHIP_ESP32C2; out_info->revision = efuse_hal_chip_revision(); out_info->cores = 1; - out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE; + out_info->features = CHIP_FEATURE_WIFI_BGN | CHIP_FEATURE_BLE | CHIP_FEATURE_EMB_FLASH; } From a918c13db5f9450f03e096b71391d576c24fac42 Mon Sep 17 00:00:00 2001 From: Marius Vikhammer Date: Mon, 14 Nov 2022 10:13:00 +0800 Subject: [PATCH 2/2] examples: update max GPIO range for C2 examples to exclude UART0 pins Closes https://github.com/espressif/esp-idf/issues/10174 --- examples/common_components/env_caps/esp32c2/Kconfig.env_caps | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/common_components/env_caps/esp32c2/Kconfig.env_caps b/examples/common_components/env_caps/esp32c2/Kconfig.env_caps index b01125aba4..3524ca58b6 100644 --- a/examples/common_components/env_caps/esp32c2/Kconfig.env_caps +++ b/examples/common_components/env_caps/esp32c2/Kconfig.env_caps @@ -4,7 +4,8 @@ config ENV_GPIO_RANGE_MIN config ENV_GPIO_RANGE_MAX int - default 20 + default 18 + # GPIOs 19/20 are always used by UART in examples config ENV_GPIO_IN_RANGE_MAX int