2018-08-02 12:00 AM
Hi, we have just purchased a STM32F4 Discovery board, and have been trying all day to run one sample application. Everything seems to compile, download and run but there is no action. We have read the AN3997 is very vague and confusing.
We have no idea where the workspace toolbar is how to change the media type. We have a USB disk plugged in using a hub - is this OK? Any help would be much appreciated.
main.c: contains the initialization code and starts the application depending on the
selected 'MEDIA_IntFLASH' or 'MEDIA_USB_KEY' configuration.
2018-08-02 12:46 AM
AFAIK the ST USB firmwares don't support hubs.
JW
2018-08-02 04:23 AM
2018-08-02 05:38 AM
As I recall the expectations are that you have a small micro-AB adapter cable that connects to the Flash Drive directly. There are "fw_upgrade" examples with the STM32F407G-DISCO SPL release, and similar stuff with the HAL.
STM32Cube_FW_F4_V1.21.0\Projects\STM32F4-Discovery\Applications\FatFs\FatFs_USBDisk\readme.txt
The OTG/Host stuff definitely isn't going to carry a Hub.
2018-08-02 05:07 PM
Thanks for the feedback. OK, we now have a micro to OTG female USB connector. Not sure why ST didn't just use a type A USB connector which would have made life simpler.
The Discovery 407VG board now shows the top orange light flashing fast and then the blue light flashes so looks like some progress.
We are using Atollic studio (well trying to use it anyway). Still have no idea where this MEDIA setting is. Thanks
2018-08-02 05:17 PM
When the blue light starts flashing, some audio start playing but it is only background static.
2018-08-02 05:47 PM
OK, everything works now. I had to rebuild the sample so that the WAVE file name was changed to test1.wav. Now the test1.wav file auto plays and when the user button is pressed, it records from the microphone to the USB as rec.wav. The main issue was the USB micro to female USB cable which we had to buy.