Has anyone managed to make USB Host work?
Posted: Mon Mar 02, 2020 4:31 pm
I would like to try USB Host with STM32F407VG (DiyMore board)
I've been trying to understand why the repository is incomplete, despite having the libraries already.
STM32CubeIDE appears to work with similar libraries, and is already functional. I liked the speed of writing a USB stick.
Unfortunately, something seems to be missing from the repository, so support is not provided officially:
[Example] USB storage with STM32F4-Discovery and CubeMX
http://evenlund.blogspot.com/2016/10/us ... nd_58.html
In case anyone else wants to try to make it work.
STM32F407VG (DiyMore) USB Port FS (CN1 or PA11: DM, PA12: DP; PC9: Drive_VBUS)
Functional Example; STM32CubeIDE (V1.3.0; FW_F4 V1.25.0)
https://github.com/stm32duino/Arduino_C ... SC_CPP.zip
Arduino example; Not Functional, but compiles without errors, It must be missing to call some routine.
https://github.com/stm32duino/Arduino_C ... B_Host.zip
I've been trying to understand why the repository is incomplete, despite having the libraries already.
STM32CubeIDE appears to work with similar libraries, and is already functional. I liked the speed of writing a USB stick.
Unfortunately, something seems to be missing from the repository, so support is not provided officially:
https://github.com/stm32duino/Arduino_ ... issues/960For the USB Host, there is no dedicated implementation but the STM32_USB_Host_Library is already included and already in the USB request list: #687
[Example] USB storage with STM32F4-Discovery and CubeMX
http://evenlund.blogspot.com/2016/10/us ... nd_58.html
In case anyone else wants to try to make it work.
STM32F407VG (DiyMore) USB Port FS (CN1 or PA11: DM, PA12: DP; PC9: Drive_VBUS)
Functional Example; STM32CubeIDE (V1.3.0; FW_F4 V1.25.0)
https://github.com/stm32duino/Arduino_C ... SC_CPP.zip
Arduino example; Not Functional, but compiles without errors, It must be missing to call some routine.
https://github.com/stm32duino/Arduino_C ... B_Host.zip
Sketch uses 15900 bytes (1%) of program storage space. Maximum is 1048576 bytes.