ESP32-S3 log to non-default UART pins

ihabawad
Posts: 9
Joined: Sat Mar 28, 2020 5:07 pm

ESP32-S3 log to non-default UART pins

Postby ihabawad » Tue Mar 12, 2024 5:01 am

Greetings,

I am using ESP-IDF with an Adafruit Qt Py ESP32-S3, which has the following pinouts:

https://cdn-learn.adafruit.com/assets/a ... pdated.png

I would like to redirect the standard ESP_LOGI logging and other console output to use TX=GPIO5, RX=GPIO16, as per the labeling of the Qt Py.

I tried a lot of combinations of "idf.py menuconfig" and could not get it to work. I have verified, by using Arduino, that the hardware works: I can indeed log to these pins.

I would greatly appreciate if someone would list the exact "sdkconfig" settings and/or "idf.py menuconfig" actions to do this!

Thank you!

Ihab

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

Re: ESP32-S3 log to non-default UART pins

Postby ESP_Sprite » Tue Mar 12, 2024 5:43 am

It's under Component config → ESP System Settings. For 'Channel for console output', you can select 'Custom UART', and that lets you select the Tx and Rx pins.

ihabawad
Posts: 9
Joined: Sat Mar 28, 2020 5:07 pm

Re: ESP32-S3 log to non-default UART pins

Postby ihabawad » Tue Mar 12, 2024 5:47 am

Thank you!!

Ihab

Who is online

Users browsing this forum: MicroController and 192 guests