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.

Hosting a USB HUB using TI-RTOS project


Hello, 

I was working on a USB project to host a hub under TI-RTOS environment . I've succeeded to host the HUB and i tried host a mouse and it works well. 

Also the it detects the connected device if it is a keyboard , mouse or a MSC. 

I'm using the mouse_open() function used in TI-RTOS example for mouse , and also the mousehandler() function and so on.


I need to use the connected MSC to save a text file on it. I tried to follow the TI-RTOS example  FatFs_Copy_files_USBMSStatic. I've tried to use the functions used in this example but the didn't work properly.

The fat files cannot be opened or created on the MSC , and i don't know why?

Also i faced some problems while initializing the fatfsUsb  , I need to know the proper sequence for initializing the USB to be able to use a HUB and FATfs ,

Attached here project. 


I'm using TI-RTOS 1_21_00_09 , and CCS version 5.4

Thanks in advance.
Mostafa


2043.HUB_TI_RTOS_13.rar


  • Mostafa,

    take a look at the USB MSC Host FatFs driver at C:\ti\tirtos_1_21_00_09\packages\ti\drivers\usbmschfatfs\USBMSCHFatFsTiva.c

    If you already got the USB Mouse and Hub working, then you can reference the Tiva driver to get the MSC host driver supported. Have you tried the FatSD USB Copy example uses this driver to read/write to the some MSC media (flash drive)?

    Try putting in  breakpoints in "USBMSCHFatFsTiva_diskInitialize" and the other USBMSCHFatFsTiva_disk* functions. These are static functions in the driver, so I don't know if the symbols will show in the memory map... FatFs calls these USBMSCHFatFsTiva_disk* functions. If they fail, then at least you can step through the code to see where it's failing.

  • Hello Mostafa,

    I am facing problems in hosting an hub in TI-RTOS environment. Can you please give me the details/steps requried on how to go about hosting hub in TI-RTOS.

    Thanks in Advance
    Narendra