App Developer connect to ESP32 S3 with USB

Discuss PC Developer and Web Developer projects and features here.
stefan.erni
Valued Contributor
Posts: 773
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 175 times

App Developer connect to ESP32 S3 with USB

Post by stefan.erni »

Hi to All

One more question. With purchased hardware with an ESP32-S3, I have to press the reset button for 5 seconds to flash the firmware.
Then press the reset button again.
The programme runs.
Now I want a connection with the USB C connector to the computer.
A serial device com15 and also an USB jtag/serial debug unit appear in the device manager of the computer.

but I can't make a connection with the App Developper with Com 15
and I don't have a pin for the interface in the firmware either.

Is this connection possible with USB component ?
Snag_1460d0e.png
Snag_1460d0e.png (135.19 KiB) Viewed 1832 times

Steve-Matrix
Matrix Staff
Posts: 1282
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 170 times
Been thanked: 287 times

Re: App Developer connect to ESP32 S3 with USB

Post by Steve-Matrix »

I think you will need to use the Serial Port component and not the USB component.

stefan.erni
Valued Contributor
Posts: 773
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 175 times

Re: App Developer connect to ESP32 S3 with USB

Post by stefan.erni »

Hi Steve

I suspect it's not that simple.
The USB pins go directly to the ESP32 C3. So I can't use an Rx/TX pin. Many ESP32 boards have a USB driver that goes from the USB connector to the UART pin.

What about BLE Uart? Is BLE already possible to test?

Steve-Matrix
Matrix Staff
Posts: 1282
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 170 times
Been thanked: 287 times

Re: App Developer connect to ESP32 S3 with USB

Post by Steve-Matrix »

Sorry, I'm not familiar with that device. You should be able to communicate to COM15 from a PC Developer app using a Serial Port component. But I don't know how you would access the same serial connection from within Embedded code in the device itself.

BenR
Matrix Staff
Posts: 1769
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 450 times
Been thanked: 611 times

Re: App Developer connect to ESP32 S3 with USB

Post by BenR »

Please can you send us a link to the specific board you're using.

Looks for devices like this to do comms back to the PC would require a USB component. Might not be too hard thanks to the IDF so I'll get it on the list.

stefan.erni
Valued Contributor
Posts: 773
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 175 times

Re: App Developer connect to ESP32 S3 with USB

Post by stefan.erni »

Hi ben

Link to the specific board:

https://docs.m5stack.com/en/core/AtomS3

Link to a shop:
https://www.digikey.ch/de/products/deta ... 3/17751546

Demo with display (working in SPI softwaremode) :)
S3_24_1_demo.fcfx
(17.54 KiB) Downloaded 77 times
Snag_34e8e.png
Snag_34e8e.png (469.82 KiB) Viewed 1803 times

BenR
Matrix Staff
Posts: 1769
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 450 times
Been thanked: 611 times

Re: App Developer connect to ESP32 S3 with USB

Post by BenR »

That looks great, are you able to program the screen? Do we need a new component for it?

I've just bought myself one and also got a couple more M5 boards. Unfortunatley they look like they might take a while to get here.

Order.jpg
Order.jpg (56.45 KiB) Viewed 1780 times

stefan.erni
Valued Contributor
Posts: 773
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 175 times

Re: App Developer connect to ESP32 S3 with USB

Post by stefan.erni »

Hi Ben

For the Atom S3 the component gLCD_ST7789V1 is working to display text.

The Atom matrix has a 5x5 LED Matrix and it's working with FC WS2812C

For the M5 Dial knob I think an additional component for GC9A01A Display driver is necessary.
The display is also used by other manufacturers

A very good feature of these M5 stack modules is that the IMU MPU6886 is supported von FC

BenR
Matrix Staff
Posts: 1769
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 450 times
Been thanked: 611 times

Re: App Developer connect to ESP32 S3 with USB

Post by BenR »

Hello,

My M5Stack parts have arrived and I've now added a new component for the GC9A01A Display driver. Seems to be working well for me but let me know if you give it a go.

I've added in a few new targets to the ESP Misc section too, should hopefully make things with the M5Stacks a little easier to get started.

stefan.erni
Valued Contributor
Posts: 773
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 151 times
Been thanked: 175 times

Re: App Developer connect to ESP32 S3 with USB

Post by stefan.erni »

Hi Ben
Thank you very much.
The Atom S3 template is working nice.
the display also works,
but I have to set all the pin.maybe you can make a template with a display
Display only in software mode on my computer is compiling.

a new component is SerialPort.fcpx but no info what it is.

and the display makes an offset. i was able to set and correct this with the other driver
2024-05-02_10-22-05.PNG
2024-05-02_10-22-05.PNG (20.96 KiB) Viewed 1488 times
Set the pin:
2024-05-02_10-22-37.PNG
2024-05-02_10-22-37.PNG (52.27 KiB) Viewed 1488 times

Post Reply