USB serial JTAG UART echo does not work without ESP_LOGI() #12605
Labels
Resolution: NA
Issue resolution is unavailable
Status: Done
Issue is done internally
Type: Bug
bugs in IDF
Answers checklist.
IDF version.
v5.1.2
Espressif SoC revision.
ESP32-s3 v0.1
Operating System used.
macOS
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
None
Development Kit.
Devkit-M
Power Supply used.
USB
What is the expected behavior?
I expected the USB JTAG serial UART to echo received characters back to the esp-idf monitor when using the following program, which is a slightly modified version of the esp-idf uart_echo example
What is the actual behavior?
Instead it only works when the line
// ESP_LOGI(TAG, "Recv str: %s", (char *) data);
is uncommented.
If idf.py menuconfig is used to select UART0, the echo works correctly, even with this line commented
Steps to reproduce.
) uncommented and observe that characters are now echoed
Debug Logs.
No response
More Information.
Note that adding
usb_serial_jtag_ll_txfifo_flush();
after
usb_serial_jtag_write_bytes((const char *) data, len, 20 / portTICK_PERIOD_MS);
seems to fix the issue but this requires the inclusion of hal/usb_serial_jtag_ll.h
which is not documented
The text was updated successfully, but these errors were encountered: