From d69ea9d85b0242d686734bf0d5a2bf14e0f5c975 Mon Sep 17 00:00:00 2001 From: Benjamin Aigner Date: Thu, 9 Feb 2023 16:39:56 +0100 Subject: [PATCH] Fixed UART clock error due to idf v5 upgrade; added sdkconfig defaults for detecting flash size --- main/ble_hidd_demo_main.c | 3 ++- sdkconfig.defaults | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/main/ble_hidd_demo_main.c b/main/ble_hidd_demo_main.c index eb522af..f35c9ef 100644 --- a/main/ble_hidd_demo_main.c +++ b/main/ble_hidd_demo_main.c @@ -1117,7 +1117,8 @@ void uart_external_task(void *pvParameters) .data_bits = UART_DATA_8_BITS, .parity = UART_PARITY_DISABLE, .stop_bits = UART_STOP_BITS_1, - .flow_ctrl = UART_HW_FLOWCTRL_DISABLE + .flow_ctrl = UART_HW_FLOWCTRL_DISABLE, + .source_clk = UART_SCLK_DEFAULT }; if(onArduinoRP2040) uart_config.baud_rate = 115200; diff --git a/sdkconfig.defaults b/sdkconfig.defaults index 5aef1ab..25e5fc8 100644 --- a/sdkconfig.defaults +++ b/sdkconfig.defaults @@ -6,14 +6,14 @@ CONFIG_BTDM_CTRL_MODE_BR_EDR_ONLY=n CONFIG_BTDM_CTRL_MODE_BTDM=n # for testing with ESP32Think (Sparkfun), which has a different XTAl -CONFIG_ESP32_XTAL_FREQ_AUTO=y -CONFIG_ESP32_XTAL_FREQ=0 +CONFIG_XTAL_FREQ_AUTO=y +CONFIG_XTAL_FREQ=0 # ESP32-WROOM uses 4MB #CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y #CONFIG_ESPTOOLPY_FLASHSIZE="4MB" # Arduino Nano connect Nina Module has 2MB -CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y -CONFIG_ESPTOOLPY_FLASHSIZE="2MB" +#CONFIG_ESPTOOLPY_FLASHSIZE_2MB=y +#CONFIG_ESPTOOLPY_FLASHSIZE="2MB" -CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y +CONFIG_ESPTOOLPY_HEADER_FLASHSIZE_UPDATE=y