ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

lmagalhaes
Posts: 9
Joined: Tue Apr 07, 2020 4:20 pm

ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby lmagalhaes » Tue Apr 20, 2021 3:44 pm

Hi there,

I have a custom board with a ESP32-S2 and I'm using the native USB port to flash the IC. I'm trying to configure it also to serve as the console, but in the menuconfig that option does not appear. According to the documentation,
On chips with USB peripheral, “USB CDC” option redirects output to the CDC port. This option uses the CDC driver in the chip ROM. This option is incompatible with TinyUSB stack.
However, the TinyUSB stack is disabled and even like that I don't have the USB CDC option. I only have the default (UART0), Custom which let's me choose between UART0 and UART1 and None.

What am I missing?

Thanks,

Luís

User avatar
ESP_Roland
Posts: 237
Joined: Tue Oct 09, 2018 10:28 am

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby ESP_Roland » Tue Apr 20, 2021 4:26 pm

Have you run "idf.py set-target esp32s2" in your project before running "idf.py menuconfig"?

lmagalhaes
Posts: 9
Joined: Tue Apr 07, 2020 4:20 pm

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby lmagalhaes » Tue Apr 20, 2021 9:15 pm

Yes, I even have in the SDKCONFIG:

CONFIG_IDF_CMAKE=y
CONFIG_IDF_TARGET="esp32s2"
CONFIG_IDF_TARGET_ESP32S2=y
CONFIG_IDF_FIRMWARE_CHIP_ID=0x0002

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby chegewara » Tue Apr 20, 2021 9:49 pm

Next question would be: what esp-idf version you are running at?

lmagalhaes
Posts: 9
Joined: Tue Apr 07, 2020 4:20 pm

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby lmagalhaes » Tue Apr 20, 2021 9:57 pm

IDF v4.2

chegewara
Posts: 2207
Joined: Wed Jun 14, 2017 9:00 pm

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby chegewara » Wed Apr 21, 2021 4:38 am

I believe that CDC console has been added from v4.3.

lmagalhaes
Posts: 9
Joined: Tue Apr 07, 2020 4:20 pm

Re: ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Postby lmagalhaes » Wed Apr 21, 2021 8:01 am

Ah. Since I'm using VSCode, how can I choose the ESP-IDF version ? I just let the extension install everything and apparentely it's pulling the 4.2 version.

Who is online

Users browsing this forum: fallafenflufen and 119 guests