esp_tusb_init_console not redirect to USB

andromeda92
Posts: 34
Joined: Tue Nov 18, 2025 5:24 pm

esp_tusb_init_console not redirect to USB

Postby andromeda92 » Tue Nov 18, 2025 8:21 pm

Hi,
ESP-IDF 5.5.1
ESP32-S3 DevKitc 16MB 8MB PSRAM
VSCODE

I'm trying to get the TUSB_CONSOLE example working, but the output is only going to UART0, not on USB.

when i select CDC on menu config, nothing on UART0 and nothing on UART0.

My device description (tinyusb) is ok on menuconfig (0x403, 0x6001, 0x0409.

I have tested with ESP32-P4 is a same, excepted sample code vcp that work on ESP32-S3 and ESP32-P4

Has anyone else experienced this problem?

Code: Select all

# The following five lines of boilerplate have to be in your project's
# CMakeLists in this exact order for cmake to work correctly
cmake_minimum_required(VERSION 3.16)

add_compile_options(-w) # Turn off warnings until esp_tinyusb is updated IEC-86
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
# "Trim" the build. Include the minimal set of components, main, and anything it depends on.
idf_build_set_property(MINIMAL_BUILD ON)
project(tusb_console)

Code: Select all

idf_component_register(SRCS "tusb_console_main.c"
                       INCLUDE_DIRS .
                       #PRIV_REQUIRES esp_vfs_console
                       )

Thanks for your jelp.

andromeda92
Posts: 34
Joined: Tue Nov 18, 2025 5:24 pm

Re: esp_tusb_init_console not redirect to USB

Postby andromeda92 » Wed Nov 19, 2025 1:08 pm

any idea ?

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: esp_tusb_init_console not redirect to USB

Postby nopnop2002 » Wed Nov 19, 2025 3:49 pm

For the esp32s3, the USB ports are GPIO19 and GPIO20.
You need external USB CONNECTOR.

Code: Select all

ESP32S3           USB CONNECTOR
                   --
                  | || VBUS (5V)
[GPIO19]  ------> | || D-
[GPIO20]  ------> | || D+
[GND]     ------> | || GND
                   --
                   

andromeda92
Posts: 34
Joined: Tue Nov 18, 2025 5:24 pm

Re: esp_tusb_init_console not redirect to USB

Postby andromeda92 » Wed Nov 19, 2025 7:16 pm

Yes, that's what I did,
but also the USB JTAG port from ESP32-S3 is already connected to pins 19 and 20, we don't need D+ and D-.
The USB-OTG jumper is also in place.

The problem isn't there because even with the ESP32-P4, which has a dedicated OTG port:
In all the examples, I can send but never receive, for example:

tusb_console, tusb_serial_device, cdc_acm_vcp, in all these programs I can send but not receive. The data passes through the USB port correctly, whether it's the ESP32-S3 or ESP32-P4.

The USB port is connected to a terminal via a USB RS232 cable connected to the ESP32-P4 or ESP32-S3, so sending works fine.

Why i can't receive ?

andromeda92
Posts: 34
Joined: Tue Nov 18, 2025 5:24 pm

Re: esp_tusb_init_console not redirect to USB

Postby andromeda92 » Wed Nov 19, 2025 7:51 pm

for sample code TUSB-SERIAL-DEVICE, i can't read and write.

To clarify, I am currently using the Waveshare ESP32-P4 WiFi6 Dev Kit basic board.

https://imgur.com/a/CZSRuux

andromeda92
Posts: 34
Joined: Tue Nov 18, 2025 5:24 pm

Re: esp_tusb_init_console not redirect to USB

Postby andromeda92 » Thu Nov 20, 2025 11:51 pm

any idea, why esp_tusb_init_console not redirect ouput to usb ?

all hardware and descriptor is ok, usb otg work fine with sample code cdc_acm_vcp.

first console is put to uart0
second console is put to usb-jtag, i tested with none too.

Is there a specific option to put in menuconfig?

Who is online

Users browsing this forum: No registered users and 3 guests