This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Usb Hosting Error on STM32F429

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

Parents
  • I did read your thread again, and sorry my answer was not to the point. You did actually analyze the return values already.

    I suggest now: - verify the Pin assignments of the USB Host interface (this can be very tricky and a small mistake makes it fail) - finit should call the related CMSIS Driver. This driver gets initialized with two functions: ARM_USBH_Initialize and ARM_USBH_PowerControl. Both functions should return ARM_DRIVER_OK. I suggest you set a breakpoint at the end of each function to check that.

Reply
  • I did read your thread again, and sorry my answer was not to the point. You did actually analyze the return values already.

    I suggest now: - verify the Pin assignments of the USB Host interface (this can be very tricky and a small mistake makes it fail) - finit should call the related CMSIS Driver. This driver gets initialized with two functions: ARM_USBH_Initialize and ARM_USBH_PowerControl. Both functions should return ARM_DRIVER_OK. I suggest you set a breakpoint at the end of each function to check that.

Children