From f1ac79747b1f8520ceb6cfc99b5042cdf5861e29 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 24 Jun 2020 09:27:26 +1000 Subject: [PATCH] monitor: Add a "Same as UART Console baud rate" setting Usually the monitor will want to run at the same speed as the boot log output. --- components/esptool_py/Kconfig.projbuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/esptool_py/Kconfig.projbuild b/components/esptool_py/Kconfig.projbuild index 7fcba13701..3069be8a69 100644 --- a/components/esptool_py/Kconfig.projbuild +++ b/components/esptool_py/Kconfig.projbuild @@ -195,8 +195,13 @@ menu "Serial flasher config" Baud rate to use when running 'idf.py monitor' or 'make monitor' to view serial output from a running chip. + If "Same as UART Console baud rate" is chosen then the value will + follow the "UART Console baud rate" config item. + Can override by setting the MONITORBAUD environment variable. + config ESPTOOLPY_MONITOR_BAUD_CONSOLE + bool "Same as UART console baud rate" config ESPTOOLPY_MONITOR_BAUD_9600B bool "9600 bps" config ESPTOOLPY_MONITOR_BAUD_57600B @@ -220,6 +225,7 @@ menu "Serial flasher config" config ESPTOOLPY_MONITOR_BAUD int + default ESP_CONSOLE_UART_BAUDRATE if ESPTOOLPY_MONITOR_BAUD_CONSOLE default 9600 if ESPTOOLPY_MONITOR_BAUD_9600B default 57600 if ESPTOOLPY_MONITOR_BAUD_57600B default 115200 if ESPTOOLPY_MONITOR_BAUD_115200B