2011-07-19 01:34 AM
Hello,
I am trying to combine my project with USB host project. And every time I compile I go straight to Hard Fault Handler when I enter into USBH_Init(&USB_OTG_FS_dev, &MSC_cb , &USR_Callbacks); The USB host project works. My project works (0 errors, 0 warnings). But I have this problem. If anyone knows how to solve my problem... Thanks to all2011-07-19 01:38 AM
''My project works (0 errors, 0 warnings)''
Zero errors & warnings just means that your code builds - it is
no
guarantee that it will work!
What debugging have you done to determine exactly where the Hard Fault occurs?
2011-07-19 04:55 AM
There could be many reasons for the hard fault.
Are you using the host lib as it is or you did some user modifications. Also note that host MSC example has EFSL in it. Did u make some changes in it? Which mass-storage device are you using? Can you capture the USB trace and provide?2011-07-22 04:58 AM
Thank you for your answer.
I have found my problem... I have forgot the stm32f10x_it.h for the interrupt and a file with .s for extention. It works now.