ESP32 UART-USB Brige How to use

For general Flowcode discussion that does not belong in the other sections.
stefan.erni
Valued Contributor
Posts: 1198
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin

My Uart program works again on both PCs.
There are no more problems with pressing the reset button.

But I can't compile the tiny program.

Do you know how I can add it to the Flowcode menu config ?

Are there any C code commands like for CPU speed setup? Then I wouldn't have to change the menu.

missing settings:
2025-12-12_10-46-44.PNG
2025-12-12_10-46-44.PNG (85.21 KiB) Viewed 1499 times

mnfisher
Valued Contributor
Posts: 1882
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 887 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Hi Stefan,

Sorry - I'm away from home at the moment - and no access to anything to test...
What are you getting in the menuconfig ? I think you need a fullclean / rebuild (or change another menu setting, rebuild) after adding the tinyusb library before it shows up?

Martin

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin, Hi Ben

I've already made some progress.
Instead of the ESP3S3 in general, I'll try just the ESP3S3 Mini first. The pin layout is clearer on that chip.

I took a closer look at the ESP32S3-Mini, and the pins for RX/TX are :

UART0 mapped to GPIO 43 (TX) and GPIO 44 (RX).

But I'm still having trouble with the configuration menu. I can't add the USB Tiny option in config-menue from Flowcode.

https://flowcode.co.uk/forums/viewtopi ... 71#p21971

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin, Hi Ben

For a test; How can I insert these lines into the file so that it isn't overwritten?

CONFIG_TINYUSB_USE_INTERNAL_PHY = y
CONFIG_TINYUSB_INTERNAL_PHY_D+ = GPIO20
CONFIG_TINYUSB_INTERNAL_PHY_D- = GPIO19

sdkconfig file for esp32s3
2026-03-20_13-33-37.PNG
2026-03-20_13-33-37.PNG (66.66 KiB) Viewed 53 times

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin, Hi Ben

When I add the green line to the S3 menuconfig batch file, “TinyUSB” appears in the menu

@CALL "C:\Users\Kfs-Forschung\Desktop\esp-idf-2\export.bat"

python "C:\Users\Kfs-Forschung\Desktop\esp-idf-2\tools\idf.py" add-dependency esp_tinyusb

python "C:\Users\Kfs-Forschung\Desktop\esp-idf-2\tools\idf.py" menuconfig -DIDF_TARGET=esp32s3
2026-03-20_14-26-24.PNG
2026-03-20_14-26-24.PNG (28.09 KiB) Viewed 48 times
2026-03-20_14-23-23.PNG
2026-03-20_14-23-23.PNG (17.5 KiB) Viewed 48 times
2026-03-20_14-24-14.PNG
2026-03-20_14-24-14.PNG (73.87 KiB) Viewed 48 times
2026-03-20_14-11-19.PNG
2026-03-20_14-11-19.PNG (26.74 KiB) Viewed 48 times

mnfisher
Valued Contributor
Posts: 1882
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 154 times
Been thanked: 887 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Progress 👍

Do you get any output from the usb?

Martin

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin

First, the good news. The code compiles and all the others functions still works fine.

But:
No, no data yet.
I still have one more thing to do.
In Flowcode esp32s3, there are only two COM ports. However, the S3 has three UARTs, and UART0 must be connected to this pin.
I'm not sure whether UART1 or UART0 is used in the Flowcode.
With channel1 there is no data output ....
UART0 is mapped to GPIO 43 (TX) and GPIO 44 (RX).

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

and here is a problem
Component config → ESP System Settings → Channel for console output

(X) Default: UART0
( ) USB CDC
( ) USB Serial/JTAG Controller
( ) Custom UART
( ) None
if I choose (X) USB Serial/JTAG Controller I get a lot in the console
2026-03-20_16-01-41.PNG
2026-03-20_16-01-41.PNG (205.55 KiB) Viewed 28 times

stefan.erni
Valued Contributor
Posts: 1198
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 222 times
Been thanked: 240 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

When I select that option, a different COM port number appears after flashing.
I can connect, but I don't receive any data.
If I want to reflash, I now have to select “Boot” and “Reset.” So the normal COM port number reappears.
( ) Default: UART0
(X) USB CDC
( ) USB Serial/JTAG Controller
( ) Custom UART
( ) None

Post Reply