Merge pull request #61 from memovai/fix/usb-serial-hang-issue-60
This commit is contained in:
@@ -552,11 +552,11 @@ esp_err_t serial_cli_init(void)
|
|||||||
repl_config.prompt = "mimi> ";
|
repl_config.prompt = "mimi> ";
|
||||||
repl_config.max_cmdline_length = 256;
|
repl_config.max_cmdline_length = 256;
|
||||||
|
|
||||||
/* USB Serial JTAG */
|
/* UART console (primary), USB Serial/JTAG available as secondary */
|
||||||
esp_console_dev_usb_serial_jtag_config_t hw_config =
|
esp_console_dev_uart_config_t hw_config =
|
||||||
ESP_CONSOLE_DEV_USB_SERIAL_JTAG_CONFIG_DEFAULT();
|
ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT();
|
||||||
|
|
||||||
ESP_ERROR_CHECK(esp_console_new_repl_usb_serial_jtag(&hw_config, &repl_config, &repl));
|
ESP_ERROR_CHECK(esp_console_new_repl_uart(&hw_config, &repl_config, &repl));
|
||||||
|
|
||||||
/* Register commands */
|
/* Register commands */
|
||||||
esp_console_register_help_command();
|
esp_console_register_help_command();
|
||||||
|
|||||||
@@ -35,5 +35,7 @@ CONFIG_HTTPD_WS_SUPPORT=y
|
|||||||
CONFIG_PARTITION_TABLE_CUSTOM=y
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
||||||
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
||||||
|
|
||||||
# Console/UART for CLI
|
# Console: UART primary (non-blocking), USB Serial/JTAG secondary
|
||||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
# Prevents device hang when no USB host is connected (issue #60)
|
||||||
|
CONFIG_ESP_CONSOLE_UART_DEFAULT=y
|
||||||
|
CONFIG_ESP_CONSOLE_SECONDARY_USB_SERIAL_JTAG=y
|
||||||
|
|||||||
Reference in New Issue
Block a user