microUSB and USB coexistence in project

MasterExploder
Posts: 26
Joined: Wed Feb 08, 2023 6:17 pm

microUSB and USB coexistence in project

Postby MasterExploder » Thu Feb 16, 2023 5:19 pm

Hi all, i would like to have some help to whoever knows something about this.

In my electric scheme i have a debug port (j11, microUSB) and a usb port (j21, classic USB port).
In the future functions of the firmware there is the possibility to read/write data using the USB.
The problem is that whenever i try for example to mount the USB, the jtag cuts off as the cable is not present between the debug port and the pc.
You can see from the document that both the ports use the same pins to communicate with the ESP, so i think this is at least part of the problem.
I am using the example software to mount an USB stick.
I leave attached also the page of the electric scheme involving USB ports.

Hardware:
ESP32-S3
Software:
https://github.com/espressif/esp-idf/tr ... b/host/msc
Attachments
LC-HMI-S3 FULL-6.pdf
(47.24 KiB) Downloaded 364 times

ESP_Sprite
Posts: 9730
Joined: Thu Nov 26, 2015 4:08 am

Re: microUSB and USB coexistence in project

Postby ESP_Sprite » Fri Feb 17, 2023 5:53 am

Yeah, sorry, you can't use the USB port for debugging and USB host at the same time. You can either change over to UART0 for debugging or programming, or add a 2nd USB PHY (e.g. a SP5301), but do note that the latter is somewhat undocumented; there's no easy tutorial.

MasterExploder
Posts: 26
Joined: Wed Feb 08, 2023 6:17 pm

Re: microUSB and USB coexistence in project

Postby MasterExploder » Mon Feb 20, 2023 3:29 pm

Thank you for your answer sir.

Who is online

Users browsing this forum: No registered users and 132 guests