cancel
Showing results for 
Search instead for 
Did you mean: 

Searching working example USB-Host with usb drive

michaelruebig9
Associate II
Posted on October 08, 2015 at 10:48

Hello,

I failed to get an application with USB-Host and FatFS working with CubeMX.

Does anyone has an example project?

FatFS always reports fr_disk_error.

I founds some posts with similar problems in some boards but nobody has posted a solution. See also

[DEAD LINK /public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/STM32Java/CubeMX%204.9%20and%20USB%20host%20%2b%20fatfs&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/AllItems.aspx&currentviews=71]https://my.st.com/public/STe2ecommunities/mcu/Lists/STM32Java/Flat.aspx?RootFolder=%2fpublic%2fSTe2ecommunities%2fmcu%2fLists%2fSTM32Java%2fCubeMX%204.9%20and%20USB%20host%20%2b%20fatfs&FolderCTID=0x01200200770978C69A1141439FE559EB459D758000F9A0E3A95BA69146A17C2E80209ADC21&TopicsView=https%3A%2F%2Fmy.st.com%2Fpublic%2FSTe2ecommunities%2Fmcu%2FLists%2FSTM32Java%2FAllItems.aspx&currentviews=71

Michael
2 REPLIES 2
jbeck17
Associate II
Posted on October 26, 2015 at 15:54

Hi,

I am experiencing this issue also. I have contacted ST and am trying to get help in working with the USB host and FATFS files generated through the Cube setup. I have been comparing the example provided for the F401 Discovery board to the cube generated output with little success in finding where the error may be cropping up. Some naming convention may be the issue although it is hard to follow since(from what I can see) there are quite a few files that reference each other that go back and forth. Perhaps someone might be able to propose a solution or help in understanding what the cube is doing with this setup? 

estie
Associate II
Posted on October 26, 2015 at 20:08

Maybe related to a bug I posted about USB CDC port not being reliable on these boards. No reply one that one yet.