This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

EVM OMAP l-137: Attempt at integrating BIOUSB HostHID and HostMSC

Hello,

I am using the EVM OMAP l-137. In broad terms, the goal of my project is to have user selectable files from a USB flash drive to be used in a DSP application. The user should be able to navigate through files on a USB flash drive(via an LCD screen, already functioning via UART, and a keypad), and select which one they wish to load and use for the main algorithm(a convolution algorithm).

Therefore, I have a usb numeric keypad connected to usb1 and a flash drive connected to usb0.

My attempt so far is based on the usbhosthid(in BIOSUSB package) and usbhostmsc(in RTFS package) example programs, in part because of my lack of experience, and also because these examples programs are functionally very close to what I will need. I have run both of them separately and they both work fine. The usbhosthid example has enabled me to use a usb numeric keypad to detect keypresses. I was able to write code for key press events, so that now, with a modified usbhosthid code, there is a functioning user interface. Depending upon the key presses, and flags which track the current state of the program, different functions are called. At the moment, those functions just send text to the LCD.

Now, the hard part. I have the interface coded to the point that the user can press keys, receive a prompt to load a USB drive, and then...I don't know how to integrate USB file loading. I thought, in theory, that I could just include all the relevant .C files and packages from the usbhostmsc example code, throw in the necessary #includes, etc., and then make a call to "waitfordriveavail" to check for a drive and assign a letter, but the program seems to always get stuck at the "getdriveid" function. When I try to debug and step through, I am told that the program can't find "rtfsposix.c"(however, I also recieve this message when I step through the functioning usbhostmsc code, which does not get stuck at that function.)

 

In short, I'm utterly confused and have spent many hours trying to learn, debug, and isolate the issue, and duplicate the conditions and organization of usbhostmsc within usbhosthid as exactly as possible. A more simple way to ask my question(assuming this is the issue) would be: what does one need to know in order to use both host hid and host msc devices with the jungo drivers?

 

Lastly, I realize that I may be lacking a lot of information about my issue; however without much experience I am not certain what info is relevant. Let me know what info would help solve the problem and I will try to provide it.


Thank you.