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.

RTOS/TM4C123GH6PM: USB host keyboard project with TI-RTOS

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: TM4C123GH6PGE

Tool/software: TI-RTOS

Hi,
    We have been using TM4C123GH6PM with TI-RTOS in our several products. A new requirement is to add USB host keyboard support with TI-RTOS.
 I can't find any USB host example for TM4C123 with TI-RTOS ( there is one in Tiva-C examples, however), and also found the following in EK_TM4C123GXL.c in all the TM4C123 TI-RTOS example projects.
    
    
            /*
             *  =============================== USB ===============================
             */
            /*
             *  ======== EK_TM4C123GXL_initUSB ========
             *  This function just turns on the USB
             */
            void EK_TM4C123GXL_initUSB(EK_TM4C123GXL_USBMode usbMode)
            {
                /* Enable the USB peripheral and PLL */
                SysCtlPeripheralEnable(SYSCTL_PERIPH_USB0);
                SysCtlUSBPLLEnable();
            
                /* Setup pins for USB operation */
                GPIOPinTypeUSBAnalog(GPIO_PORTD_BASE, GPIO_PIN_4 | GPIO_PIN_5);
            
                if (usbMode == EK_TM4C123GXL_USBHOST) {                            // <========= here
                    System_abort("USB host not supported\n");
                }
            }

       
    Please advise how to get it work or where I should look into. Thanks !
    
        CCS: V6.1.2.00015
        TI-RTOS: v 2.16.1.14
        
    Eric

  • Hi Eric,

    As noted, we don't ship a USB Keyboard host example in TI-RTOS. I cannot completely remember the exact reason for not implementing USB Host support in TI-RTOS for the TM4C123 devices (TI-RTOS did have it for TM4C129).

    Todd
  • Hi, Todd:
    I learned that there are USB host examples for TM4C129/TI-RTOS, but only TivaWare USB host examples for TM4C123GH6PGE.
    But for TM4C123GH6PM, absolutely no USB host examples. What confuses me is, according to the datasheets, the USB controller among
    these three devices look identical to me, except pin assignment variation and the ULPI part ofTM4C129, which not required in my application.

    Anyway, I'm planning to use the TM4C129/TI-RTOS USB host keyboard example project as a reference and modify them for TM4C123GH6PM.
    Will be much appreciated to get advise from you that I'm going the right direction, and won't end up to a dead alley.
    Thanks !
    Eric