We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello Everyone, I'm following these steps ( www2.keil.com/.../ ) in order to understand USB Hosting and create my own application. Unfortunately i encountered a problem. I arrived at Step 3 and i added the Host support correctly but i can't access the usb stick. When i debug the USBH_MSC_DriveMount function , i found that wether the actual usb stick is connected or not , the finit function returns fsDriverError. I checked on Documentation and found out that it means it failed to initialize the drive but i couldn't find a way how to fix it or what it actually means. I'll be glad if you could help me solve my problem and thank you .
I'm using STM32F429
Hi Medhi,
my test did relate to the CMSIS Driver that interfaces to the physical hardware. This driver is implemented in the file USBH_HS_STM32F4xx.c (under CMSIS-Driver component group) and has two functions ARM_USBH_Initialize and ARM_USBH_PowerControl which can give you an indication of the problem.
Both functions should return ARM_DRIVER_OK. I suggest you set a breakpoint at the end of each function to check that.
Thank you all for your help, i updated the DFP to 2.5.0 and i changed the usb stick now everything works. i suppose that the previous usb stick needed too much power
Doesn't first stick still work with new 2.5.0 DFP pack?
I tested it again and now it works.