cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 USB Host config for FT232RL

SohamC
Associate II

Title edited to name the device being hosted.


Hello , 
I am currently trying to configure STM32F407 board as USB host. The code for it is given below. I am not receiving anything from the USB device(bus powered). I have a doubt that it might be related to the hardware of it(VBUS). The rest of the code is generated by the IDE itself so there is no doubt related to it. I have configured it as USB host only mode. I am new to embedded systems so any kind of help would be appreciated. Is there anything wrong with the code or any links to help me configure the USB host.
I would be glad to clarify any queries related to the above.

21 REPLIES 21

You mean this: https://stm32-base.org/boards/STM32F407ZGT6-Euse-M4-DEMO-Large.html ?

Always good to give a link so people know exactly what you're referring to - especially with a non-ST board.

Do you have schematics for it?

 

Was there a particular reason for choosing STM32?

For USB hosting, a Raspberry Pi (or similar) would be simpler ...

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Yes , its the same board.

The use case is not that much to use raspberry pi, even this board might be replaced with less dense version which has usb hosting capability. This is just for prototyping and configuring as  usb host. STM32 has built in libraries which is user friendly. These things can be handled and made simple once the USB configuration is done.