2024-10-08 04:54 AM
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?
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!
2024-10-08 05:12 AM
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.
2024-10-09 08:34 AM
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.