From 3c561e215fc0dafec252527a5d0606a0c5369e2a Mon Sep 17 00:00:00 2001 From: Rhys Mainwaring Date: Wed, 4 Dec 2024 08:09:07 +0000 Subject: [PATCH] AP_HAL_ESP32: set default cpu frequency to 240MHz Signed-off-by: Rhys Mainwaring --- libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig.defaults | 1 + .../AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig.defaults | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig.defaults b/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig.defaults index b94fe2d026695..9027170b1c7e3 100644 --- a/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig.defaults +++ b/libraries/AP_HAL_ESP32/targets/esp32/esp-idf/sdkconfig.defaults @@ -10,6 +10,7 @@ CONFIG_APP_RETRIEVE_LEN_ELF_SHA=16 CONFIG_ESPTOOLPY_FLASHMODE_QIO=y CONFIG_ESPTOOLPY_FLASHFREQ_80M=y CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_PARTITION_TABLE_CUSTOM=y CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="../partitions.csv" CONFIG_COMPILER_OPTIMIZATION_PERF=y diff --git a/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig.defaults b/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig.defaults index 22da63b62b92a..c346336842fc5 100644 --- a/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig.defaults +++ b/libraries/AP_HAL_ESP32/targets/esp32s3/esp-idf/sdkconfig.defaults @@ -20,6 +20,7 @@ CONFIG_ESP32S3_UNIVERSAL_MAC_ADDRESSES_TWO=y CONFIG_ESP_SLEEP_FLASH_LEAKAGE_WORKAROUND=n CONFIG_ESP_SLEEP_GPIO_RESET_WORKAROUND=n CONFIG_ESP32S3_INSTRUCTION_CACHE_32KB=y +CONFIG_ESP_DEFAULT_CPU_FREQ_MHZ_240=y CONFIG_ESP_INT_WDT=n CONFIG_ESP_TASK_WDT_INIT=n CONFIG_ESP_IPC_TASK_STACK_SIZE=1536