Re: Has anyone used the USB HS port used as a USB FS on STM32F4?
On 07/06/2018 06:32 PM, Li, Jun R wrote:
Based on the datasheet <https://www.st.com/resource/en/datasheet/stm32f427vg.pdf> of STM32F429(Page 40), the OTG_HS port supports both full-speed with its integrated transceiver or high-speed with an external Phy. So, the port can still be used as a full-speed USB port without any hardware efforts, which is the way I’m using it on a 429 board I have.I haven't checked the USB_OTG_HS in STM32Cube and I don't know if it will work out of the box with the usb_dc_stm32 driver. Probably not.
We need to create a second instance of a "USB device" (the driver right now doesn't support this). We also need to add support for this peripheral in the DT.
CONFIG_HAS_USB_OTG_HS (or just CONFIG_USB_OTG_HS) sounds reasonable to me.