Page 1 of 2

App Developer connect to ESP32 S3 with USB

Posted: Thu Apr 11, 2024 2:16 pm
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 1316 times

Re: App Developer connect to ESP32 S3 with USB

Posted: Thu Apr 11, 2024 2:38 pm
by Steve-Matrix
I think you will need to use the Serial Port component and not the USB component.

Re: App Developer connect to ESP32 S3 with USB

Posted: Thu Apr 11, 2024 3:45 pm
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?

Re: App Developer connect to ESP32 S3 with USB

Posted: Thu Apr 11, 2024 4:26 pm
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.

Re: App Developer connect to ESP32 S3 with USB

Posted: Fri Apr 12, 2024 10:12 am
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.

Re: App Developer connect to ESP32 S3 with USB

Posted: Fri Apr 12, 2024 12:23 pm
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 41 times
Snag_34e8e.png
Snag_34e8e.png (469.82 KiB) Viewed 1287 times

Re: App Developer connect to ESP32 S3 with USB

Posted: Mon Apr 15, 2024 9:54 am
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 1264 times

Re: App Developer connect to ESP32 S3 with USB

Posted: Wed Apr 17, 2024 11:34 am
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

Re: App Developer connect to ESP32 S3 with USB

Posted: Wed May 01, 2024 12:22 pm
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.

Re: App Developer connect to ESP32 S3 with USB

Posted: Thu May 02, 2024 9:41 am
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 972 times
Set the pin:
2024-05-02_10-22-37.PNG
2024-05-02_10-22-37.PNG (52.27 KiB) Viewed 972 times