USB Serial/JTAG Controller Console

esp_programmer
Posts: 16
Joined: Wed Jul 12, 2023 4:26 am

USB Serial/JTAG Controller Console

Postby esp_programmer » Thu Nov 09, 2023 10:21 pm

Hi,

I am attempting to enable the esp32s3 USB Serial/JTAG console for serial console input/output as per the instructions on https://docs.espressif.com/projects/esp ... nsole.html. All that is apparently required is to set the CONFIG_ESP_CONSOLE_UART option in menuconfig. However, whenever I do this, I get compile errors. Depending on the version of the IDF, the error can be different:

Via docker image espressif/idf:release-v5.1:

Code: Select all

error: implicit declaration of function 'ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT'
Via docker image espressif/idf:

Code: Select all

error: unknown type name 'esp_console_dev_uart_config_t';
error: implicit declaration of function 'ESP_CONSOLE_DEV_UART_CONFIG_DEFAULT';
I have also run the build using a local IDF versions (5.0, 5.1 and master branch) with the same results.

There have been a number of issues raised on github around this area (https://github.com/espressif/esp-idf/issues/11896, https://github.com/espressif/esp-idf/issues/11924, https://github.com/espressif/esp-idf/issues/5716) but they seem to be fixes for specific chips or a specific app in the examples.

I can raise an issue on github, but I thought I would first check whether I am missing something - should this work and, if so, on which versions of the IDF?

esp_programmer
Posts: 16
Joined: Wed Jul 12, 2023 4:26 am

Re: USB Serial/JTAG Controller Console

Postby esp_programmer » Sun Nov 12, 2023 11:22 pm

It appears the problem is that I was using code that assumed the uart was being used for the console, not the USB. I can get the example app in examples/system/console/basic to operate as expected.

So disregard my question, thanks.

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 109 guests