Page 1 of 1

USB Serial/JTAG Controller Console

Posted: Thu Nov 09, 2023 10:21 pm
by esp_programmer
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?

Re: USB Serial/JTAG Controller Console

Posted: Sun Nov 12, 2023 11:22 pm
by esp_programmer
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.