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.

TM4C123GH6PM: TM4C123GH6PM USB OTG sample program

Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: TM4C129XNCZAD

Anybody please tell me where I can find the sample code for  USB in OTG mode for TM4C123GH6PM MCU.I got some sample code for the device and host mode but I couldn't find any OTG sample programs.

Please share if anybody has it.

  • Sorry, the only example of OTG in TivaWare is for the DK-TM4C129x. You can look at that as an example, but that project will not run on the TM4C123 as is.

    C:\ti\TivaWare_C_Series-2.1.4.178\examples\boards\dk-tm4c129x\usb_otg_mouse
  • Sir,

    I am doing a project using TM4C123GH6M MCU.I need to provide USB OTG support in that. I went through the sample code of the USB OTG of DK-TM4C129x board which is used TM4C129XNCZAD MCU. Both MCUs memory maps of USB is same. But the pin map is different. Peripheral library and USB library also same. Will the software run for TM4C123GH6M if I change GPIO configuration (because the pin map is different)? Correct me if I am wrong? Also, I need only the USB OTG part of  the reference code (USB OTG of DK-TM4C129x board) , I don't need the mouse and display parts of the sample code.