App Developer connect to ESP32 S3 with USB

Discuss PC Developer and Web Developer projects and features here.
stefan.erni
Valued Contributor
Posts: 893
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 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 4959 times

Steve-Matrix
Matrix Staff
Posts: 1388
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 185 times
Been thanked: 322 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: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 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: 1388
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 185 times
Been thanked: 322 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: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 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: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 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 271 times
Snag_34e8e.png
Snag_34e8e.png (469.82 KiB) Viewed 4930 times

BenR
Matrix Staff
Posts: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 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 4907 times

stefan.erni
Valued Contributor
Posts: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 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: 1901
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 494 times
Been thanked: 668 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: 893
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 175 times
Been thanked: 206 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 4615 times
Set the pin:
2024-05-02_10-22-37.PNG
2024-05-02_10-22-37.PNG (52.27 KiB) Viewed 4615 times

Post Reply