ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

bernardbru
Posts: 6
Joined: Fri Aug 13, 2021 8:42 am

ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby bernardbru » Mon Sep 13, 2021 2:01 pm

Hi,
My ESP-IDF version is 4.3
I would like to use USB Serial/JTAG Controller Console.
Reading documentation ESP32-C3 master(latest)::

Software Configuration
USB console feature can be enabled using CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG option in menuconfig tool (see CONFIG_ESP_CONSOLE_UART).
Found in: Component config > ESP System Settings


Using menuconfig, in ESP System Settings, there is no information related to CONFIG_ESP_CONSOLE_UART

So what is wrong ?

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

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby ESP_Roland » Mon Sep 13, 2021 2:46 pm

Hi bernardbru,

You are using ESP-IDF v4.3 but reading the documentation for v4.4 (latest master). ESP_CONSOLE_USB_SERIAL_JTAG is not supported in v4.3. If you need that then please switch to v4.4 (master branch).

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby ESP_Sprite » Tue Sep 14, 2021 1:46 am

Note that current master still contains a bug where the ESP32C3 will hang on startup as long as USB is not connected or the serial port involved is not open. We're working on a fix for that.

MattiaBerton
Posts: 35
Joined: Thu Aug 30, 2018 8:16 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby MattiaBerton » Thu Dec 16, 2021 12:54 pm

Hello,
I'm using the 5.0 dev IDF. I'm using the USB as Jtag interface. I have two questions:
1) If I use the ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG, how can I read the message that comes from the USB? I see no COM port, what step should I follow?
2) The program hangs during startup; is this the issue that ESP_Sprite were talking about?

Thank you,
Mattia Berton

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby ESP_Sprite » Fri Dec 17, 2021 5:00 am

On 1, how did you connect the C3 to your computer?
On 2, could be. I know there's an internal fix in master for this issue, but I'm not sure if it made it to 5.0-dev yet.

MattiaBerton
Posts: 35
Joined: Thu Aug 30, 2018 8:16 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby MattiaBerton » Mon Dec 20, 2021 9:00 am

Hi,
1) I connected the c3 directly via usb to the pin 18 and 19. I'm directly debugging it via the USB serial/JTAG port.
2) Ok, I will try to check and I will update eventually

Thank you,
Mattia

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby ESP_Sprite » Mon Dec 20, 2021 10:33 am

In the case of 1, you should see a comport (automatically under Win8 and up, OSX and Linux). Note that under Linux, it's likely called /dev/ttyACM0, not /dev/ttyUSB0. Do you get any message at all when you plug in the device? You don't happen to have a program loaded that uses GPIO18/19 as a GPIO?

MattiaBerton
Posts: 35
Joined: Thu Aug 30, 2018 8:16 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby MattiaBerton » Mon Dec 20, 2021 12:46 pm

Hello,
I have Windows 10, and I can see USB JTAG/serial debug unit when I plug the device, but no COM port. The USB device use WinUSB as a profile.
When I plug the device, Windows installs the JTAG device, but no com port.

MattiaBerton
Posts: 35
Joined: Thu Aug 30, 2018 8:16 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby MattiaBerton » Fri Dec 31, 2021 10:57 am

Hello,
sorry if I post again, but I don't have a solution at the moment. I don't know what I'm doing wrong: when I connect the esp32-c3 to the usb, I have a USB Serial/jtag on my device manager, but no com port associated. Should I do something to let the PC see the COM port?

ESP_Sprite
Posts: 9709
Joined: Thu Nov 26, 2015 4:08 am

Re: ESP32-C3 option CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG

Postby ESP_Sprite » Sun Jan 02, 2022 11:56 am

Sorry, I have no idea, but honestly, I'm not a Windows expert... all OSses should detect a serial port there. have you perhaps messed around with Zadig to install a custom driver there? If so, you may need to undo that.

Who is online

Users browsing this forum: No registered users and 216 guests