cancel
Showing results for 
Search instead for 
Did you mean: 

USB Protocol

vbk22398
Associate III

I am using STM32F423RHT6 in the project. In .ioc file, there are different versions of USB being given. I am getting confused in which is given for what purpose? 

Screenshot 2024-10-08 165743.png

 Under the connectivity tab, there is USB OTG FS, whereas in Middlewares and Softwares also, there is USB_Device and host. I am getting confused, which one should be used for data transfer and through which pins we need to program. Kindly help me understand!

2 REPLIES 2
TDK
Guru

Generally, using the FS USB is preferred on pins PA11/PA12, but you can use the HS USB as well.

A USB host is different than a USB device. There are options for both. Generally, you want the STM32 to be a USB device. "data transfer" can be done with the virtual com port USB device.

USB - Wikipedia

USB Made Simple

If you feel a post has answered your question, please click "Accept as Solution".
FBL
ST Employee

Hi @vbk22398 

USB OTG FS is meant to configure the instance, HW setup, clock config, PHY ..etc

Under Middelwares, USB_Device and Host is used to configure USB stack, class and so on.

USB IOs to be configured depend on STM32 HW package (to be checked in datasheet) and the USB PHY (internal embedded or external ULPI PHY)

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.