ESP32S3 : Write to the USB/JTAG port does not work properly !
Posted: Tue May 07, 2024 1:55 pm
Good afternoon,
I am working with an Esp32S3. In the sdkconfig file, I have
defined the USB/JTAG port as output for the console.
So, when the firmware is resetted, I can see outputs from the firmware on this console.
Now, I would like to write thing to this console from my firmware manually. So I have installed the usb_jtag driver this way :
usb_serial_jtag_driver_config_t usb_serial_jtag_config;
usb_serial_jtag_config.rx_buffer_size = COM_MSG_MAX_LEN;
usb_serial_jtag_config.tx_buffer_size = COM_MSG_MAX_LEN;
Err = usb_serial_jtag_driver_install(&usb_serial_jtag_config);
Using the usb_serial_jtag_read_bytes(DataRead, COM_MSG_MAX_LEN, 50); I can get string that I enter in my firmware and do some actions. Here, everything is ok.
However, when I use the usb_serial_jtag_write_bytes(Msg, Length, 0); function in order to write thing to the console.
The strings that I want to output are not written at all... I need to wait that the firmware write something to the console automatically (For example, when I start a driver or something like that), in order to see my lines...
Do you know why please ?
Could you help me on this subject please ?
Best regards,
I am working with an Esp32S3. In the sdkconfig file, I have
defined the USB/JTAG port as output for the console.
So, when the firmware is resetted, I can see outputs from the firmware on this console.
Now, I would like to write thing to this console from my firmware manually. So I have installed the usb_jtag driver this way :
usb_serial_jtag_driver_config_t usb_serial_jtag_config;
usb_serial_jtag_config.rx_buffer_size = COM_MSG_MAX_LEN;
usb_serial_jtag_config.tx_buffer_size = COM_MSG_MAX_LEN;
Err = usb_serial_jtag_driver_install(&usb_serial_jtag_config);
Using the usb_serial_jtag_read_bytes(DataRead, COM_MSG_MAX_LEN, 50); I can get string that I enter in my firmware and do some actions. Here, everything is ok.
However, when I use the usb_serial_jtag_write_bytes(Msg, Length, 0); function in order to write thing to the console.
The strings that I want to output are not written at all... I need to wait that the firmware write something to the console automatically (For example, when I start a driver or something like that), in order to see my lines...
Do you know why please ?
Could you help me on this subject please ?
Best regards,