diff --git a/components/efuse/src/esp32c3/esp_efuse_utility.c b/components/efuse/src/esp32c3/esp_efuse_utility.c index ab5f9afa6a..71532881f7 100644 --- a/components/efuse/src/esp32c3/esp_efuse_utility.c +++ b/components/efuse/src/esp32c3/esp_efuse_utility.c @@ -63,8 +63,14 @@ const esp_efuse_range_addr_t range_write_addr_blocks[] = { // Update Efuse timing configuration static esp_err_t esp_efuse_set_timing(void) { - uint32_t clock_hz = esp_clk_apb_freq(); - return ets_efuse_set_timing(clock_hz) ? ESP_FAIL : ESP_OK; + // efuse clock is fixed in ESP32-C3, so the ets_efuse_set_timing() function + // takes an argument for compatibility with older ROM functions but it's ignored. + int res = ets_efuse_set_timing(0); + assert(res == 0); + + REG_SET_FIELD(EFUSE_WR_TIM_CONF2_REG, EFUSE_PWR_OFF_NUM, 0x60); + + return ESP_OK; } #endif // ifndef CONFIG_EFUSE_VIRTUAL diff --git a/components/esptool_py/esptool b/components/esptool_py/esptool index ed04f90c8e..4698b39673 160000 --- a/components/esptool_py/esptool +++ b/components/esptool_py/esptool @@ -1 +1 @@ -Subproject commit ed04f90c8ee3994bfedf90de8e2450126c69f196 +Subproject commit 4698b396730b23fb4aab023c5fb1744db957fc4c