2021-09-22 06:47 AM
Hi guys,
unfortunately I am not able to find an example on how to use/configure the STM32F769I-DISCO with FatFS and USB-Mass Storage to be able to stick a USB-Stick into the board and read/write files. Can someone of you point me in the right direction?
I am getting the HOST_USER_CONNECTION event but not the HOST_USER_CLASS_ACTIVE event when plugging an USB-Stick into the board and have not the slightest idea where to start.
In CubeMX I am getting an error that VBUS is not configured correctly before creating the code but there doesn't seem to be a dedicated pin for that on the DISCO board.
Cheers,
Patrick
Solved! Go to Solution.
2021-10-05 04:29 AM
Hello @patrickschneider9 ,
Sorry for the delay. Yes I confirm that USB OTG Host with read/write to an USB-Stick is possible with the STM32F769I-DISCO.
BeST Regards,
Walid
2021-09-23 06:26 AM
Hello @patrickschneider9 ,
You can refer to the following example provided under our F7 Firmware Package (Path: Projects\STM32F769I_EVAL\Applications\FatFs\FatFs_USBDisk)
You could port it on your board. This might help you.
BeST Regards,
Walid
2021-09-23 07:49 AM
Hi Walid,
thanks for the answer - that I already found but unfortunately there is no *.ioc file to "quickly" replicate the configuration for the CubeMX and more importantly I don't know how exactly to configure the USB board specific for the DISCO board (especially the VBUS, as it seems to have no pin for that).
Cheers
2021-09-23 08:08 AM
Hello @patrickschneider9 ,
Unfortunately, we do not have an example developed with the STM32CubeMX in our F7 firmware package.
But, you can follow this training that uses the STM32CubeMX: https://www.youtube.com/watch?v=dC0d8CVEPrQ
I hope it will help you.
BeST Regards,
Walid
2021-09-23 08:37 AM
Hi again,
thanks for the answer, that video indeed is helpful for understanding how to connect FatFS to the USBH Process and to work with FatFS! Thanks for that. Unfortunately I am not getting to this point as my Appli_State never get switched to HOSTER_USER_CLASS_ACTIVE.
Still I am thinking about the VBUS pin. The video you posted also showed how to configure this pin, but I can't find this pin in the schematics of the DISCO board.
So perhaps let me ask another question: Is USB OTG Host with read/write to an USB-Stick possible with the STM32F769I-DISCO?
Cheers and thanks.
2021-10-05 04:29 AM
Hello @patrickschneider9 ,
Sorry for the delay. Yes I confirm that USB OTG Host with read/write to an USB-Stick is possible with the STM32F769I-DISCO.
BeST Regards,
Walid