Page 1 of 1

ESP32S2 USB-CDC does not appear as option in CONFIG_ESP_CONSOLE_UART

Posted: Tue Apr 20, 2021 3:44 pm
by lmagalhaes
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

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

Posted: Tue Apr 20, 2021 4:26 pm
by ESP_Roland
Have you run "idf.py set-target esp32s2" in your project before running "idf.py menuconfig"?

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

Posted: Tue Apr 20, 2021 9:15 pm
by lmagalhaes
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

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

Posted: Tue Apr 20, 2021 9:49 pm
by chegewara
Next question would be: what esp-idf version you are running at?

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

Posted: Tue Apr 20, 2021 9:57 pm
by lmagalhaes
IDF v4.2

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

Posted: Wed Apr 21, 2021 4:38 am
by chegewara
I believe that CDC console has been added from v4.3.

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

Posted: Wed Apr 21, 2021 8:01 am
by lmagalhaes
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.