7 years, 9 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...

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 2016

Ideally 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

2 Answers

7 years, 9 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.

7 years, 9 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/