ESP32 UART-USB Brige How to use

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

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin

Thanks for the support. I tried, but I always end up with a new error and then I get a little lost. I'll keep trying.

Code: Select all

ERROR: Directory "C:\C#_sourcecode\_#FC11\Tiny_usb\main" does not exist! Please specify a valid component under C:\C#_sourcecode\_#FC11\Tiny_usb or try to use --path

C:\C#_sourcecode\_#FC11\Tiny_usb>ERROR: Directory "C:\C#_sourcecode\_#FC11\Tiny_usb\main" does not exist! Please specify a valid component under C:\C#_sourcecode\_#FC11\Tiny_usb or try to use --path

mnfisher
Valued Contributor
Posts: 1746
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 815 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Something looks awry with the path ?

How (and where) are you creating the flowchart?

Martin

stefan.erni
Valued Contributor
Posts: 1137
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

I made a copy of supplementary.c supplementary.h from the supplementary folder to Tiny_usb
I did not help...
2025-12-04_10-28-51.PNG
2025-12-04_10-28-51.PNG (34.85 KiB) Viewed 570 times

Steve-Matrix
Matrix Staff
Posts: 1674
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 237 times
Been thanked: 396 times

Re: ESP32 UART-USB Brige How to use

Post by Steve-Matrix »

May also need "main"?

mnfisher
Valued Contributor
Posts: 1746
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 815 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Yes - supplementary.h & .c need to go into tiny_usb (project directory) /main/includes - and add includes to CMakeLists.txt as above.

Martin

stefan.erni
Valued Contributor
Posts: 1137
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

ok I create main and all...

Code: Select all

In file included from C:/Users/Kfs-Forschung/Desktop/esp-idf-2/mtxesp32_s3_sdkconfig/main/esp-project.c:20:
C:\C#_sourcecode\_#FC11\Tiny_usb\tinyusb_test.h:64:10: fatal error: supplementary.h: No such file or directory


mnfisher
Valued Contributor
Posts: 1746
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 815 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Odd - the main directory should be created with the project - you could try either pasting the .h and .c files into the supplementary code (instead of the #includes) or give them a fixed address (#include "c:/test/file.h")

Martin

stefan.erni
Valued Contributor
Posts: 1137
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin

I haven't had any success yet.
But I've noticed that when I connect UART0 to pins GPIO43 and GPIO44,
I can no longer flash the ESP32-S3 as easily.
I have to press the boot button and plug in the USB-C, then flash and remove the USB-C again and plug it back in.
But when I deactivate UART0 again, I can flash comfortably with Flowcode.
So something is happening with the built-in UART to USB bridge. :)

mnfisher
Valued Contributor
Posts: 1746
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 147 times
Been thanked: 815 times

Re: ESP32 UART-USB Brige How to use

Post by mnfisher »

Some progress? Compiling okay now? Does it appear to connect to USB with a new port?

Can you post your code so far?

Martin

stefan.erni
Valued Contributor
Posts: 1137
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 215 times
Been thanked: 238 times

Re: ESP32 UART-USB Brige How to use

Post by stefan.erni »

Hi Martin

I used another computer. I tested the two UARTs with it and everything is fine.
Later this week, I will perform the same tests on the other computer where I had the problems.
I tried to use the bridge there.

My testfirmware:
Software.zip
(297.73 KiB) Downloaded 30 times
IMG_5381.jpeg
IMG_5381.jpeg (89.88 KiB) Viewed 344 times
The image shows how UART0 and UART1 work and, incidentally, how UART1 is only slightly delayed and not, as assumed, only when uart0 is finished.
scope_206.png
scope_206.png (33.2 KiB) Viewed 344 times

Post Reply