Skip to content

Commit

Permalink
Fixed UART clock error due to idf v5 upgrade; added sdkconfig default…
Browse files Browse the repository at this point in the history
…s for detecting flash size
  • Loading branch information
benjaminaigner committed Feb 9, 2023
1 parent 9324fe3 commit d69ea9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion main/ble_hidd_demo_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
10 changes: 5 additions & 5 deletions sdkconfig.defaults
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d69ea9d

Please sign in to comment.