Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
8 years, 5 months ago.
LocalFileSystem or USB Flash disk on STM32F746NG-Discovery
I have a STM32F746NG-Discovery and would like to read a file either from a USB Disk, or via the local file system. Unfortunately the LocalFileSystem library only seems to be for NXP boards.
The STM32F746NG-Disco is equipped with a USB OTG HS port, as well as the main usb programming interface. Does anybody have know how to get this working, or will my only option be writing a new library from scratch...
2 Answers
8 years, 5 months ago.
For using it as flash drive there is this lib: https://developer.mbed.org/users/mbed_official/code/USBDevice/, for interfacing with it there is this one: https://developer.mbed.org/users/va009039/code/F401RE-USBHost/
The problem, neither of them supports the F7 series. I have no idea if it uses the same USB peripheral as in the F4, if that is the case, then you only need at worst to make minor modifications if they changed some names for example. If it is a completely new peripheral, yeah then you are screwed :P.
8 years, 5 months ago.
I just ported the F401 lib to STM32F746-Discovery with the addition that you can chose both interfaces. But at the moment only one can be used. https://developer.mbed.org/users/DieterGraef/code/DISCO-F746NG_USB_Host/
Do you want your board to appear as USB flash drive, or do you want to interface with a USB flash drive?
posted by Erik - 09 Jun 2016Ideally I would like to interface with a USB flash drive. However, your first suggestion would suffice as well! Thanks for helping Erik!
posted by Alex van Rijs 09 Jun 2016