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.

How to make TM4C123G a USB device

Other Parts Discussed in Thread: EK-TM4C123GXL

If my Tiva  C Series TM4C123G launchpad is connected to my laptop through USB cable, what steps should I follow so that I can program  a GUI with C++ or C#  to control the micro controller from laptop? For example, my laptop's GUI will have a switch and an LED, when I clicked the switch with my mouse, the LED on my launch pad will turn on; and at the same time, the LED on my PC's GUI will also turn on. Thanks!

  • The simplest way to start this would be to download and install TivaWare.

    Once installed find the examples\boards\ek-tm4c123gxl\usb_dev_serial\  example.  This causes the LaunchPad to enumerate as a virtual serial port when a USB cable is plugged into the side of it.  Modify the example to receive and interpret the bytes it receives as commands to turn on and off the LEDs.

    Write a PC program to send the appropriate bytes to the COM port that appears on the PC when you attach the launchpad.  

    Other USB protocols will works as well such usb_dev_bulk.  However, serial is simplest and allows you to use Putty or TeraTerm as a test program until you write your PC GUI.

    If you want an embedded GUI ( a screen on the launchpad) see the TI TM4C123G LaunchPad Workshop.  The display chapter creates a self contained GUI program with the EB-LM4F120XL-L35 display from Kentec.

    Dexter

  • Thanks for the quick and helpful reply. I will have a try.