mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-05 13:44:32 +02:00
fix(system_console): fixed unity output not working with usb jtag serial
This commit is contained in:
@@ -126,5 +126,12 @@ void bootloader_console_init(void)
|
|||||||
void bootloader_console_init(void)
|
void bootloader_console_init(void)
|
||||||
{
|
{
|
||||||
esp_rom_output_switch_buffer(ESP_ROM_USB_SERIAL_DEVICE_NUM);
|
esp_rom_output_switch_buffer(ESP_ROM_USB_SERIAL_DEVICE_NUM);
|
||||||
|
|
||||||
|
/* Switch console channel to avoid output on UART and allow */
|
||||||
|
esp_rom_output_set_as_console(ESP_ROM_USB_SERIAL_DEVICE_NUM);
|
||||||
|
|
||||||
|
/* ROM printf by default also prints to USB-Serial-JTAG on channel 2
|
||||||
|
need to disable to not print twice */
|
||||||
|
esp_rom_install_channel_putc(2, NULL);
|
||||||
}
|
}
|
||||||
#endif //CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
|
#endif //CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
||||||
# Disabled due to semihosting issue IDF-9574
|
# Disabled due to semihosting issue IDF-9574
|
||||||
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=n
|
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=n
|
||||||
|
Reference in New Issue
Block a user