Esp32S3 : Log output on UART0 problems

ThomasESP32
Posts: 229
Joined: Thu Jul 14, 2022 5:15 am

Esp32S3 : Log output on UART0 problems

Postby ThomasESP32 » Tue Nov 21, 2023 9:36 am

Good morning,

I have a question concerning the logs output on UART0.
I am working on the Esp32S3 and in the sdkconfig file, I have set the log output on UART0 and on UART/JTAG at the same time.
Here everything is perfect.

Now I would like to have the possibility to enter commands in the console where logs are displayed so that they can be
analyzed, interpreted by the firmware.

1) Dealing with the USB, everything is OK I have no problem. I have just started the usb_serial_jtag_driver_install and I use the usb_serial_jtag_read_bytes method in a loop in order to take/record the commands from the console.

2) When I want to do the same thing using the UART, I use the following functions :
uart_driver_install(UART_PROD_PORT_NUM, UART_PROD_BUFFER_SIZE * 2, 0, 0, NULL, 0);
uart_param_config(UART_PROD_PORT_NUM, &uart_config);
uart_set_pin(UART_PROD_PORT_NUM, UART_PROD_TX_PIN, UART_PROD_RX_PIN, UART_PROD_UNUSED_PIN, UART_PROD_UNUSED_PIN);
in order to configure the UART.
However, as soon as the UART is configured, the logs line are not displayed anymore in the console...

Do you know what can happen please ?

Best regards,

Who is online

Users browsing this forum: No registered users and 118 guests