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.

TI TM4C123 LaunchPad USB Device problem with Energia

Other Parts Discussed in Thread: ENERGIA

Dear All,

I have TI TM4C Launchpad and using Energia. 

I was trying to use Device side USB and I wrote a code to send simple 'Hello World' on device side usb.

But PC does not detect Device Side and because of that, it does not send any data via device side usb port.

Here is the code

#define LED 30

void setup()
{
  // put your setup code here, to run once:
  Serial6.begin(9600);
  pinMode(LED,OUTPUT);
}

void loop()
{
  // put your main code here, to run repeatedly:
  
  digitalWrite(LED,HIGH);
  Serial6.println("Hello World");
  delay(250);
  digitalWrite(LED,LOW);
  delay(500);
  Serial6.println("Deneme Seriport 6");
  delay(500);
}

  • Hello Hikmet,

    Does the LaunchPad get detected as a COM port and ICDI device on the PC, when there is no code on it?

    Regards
    Amit
  • Hi Amit, When I connect on debug side, it detects but on the Device side, it doesn't detect. But in the one or two time windows gave me warning that device is not recognized and when I enter the device, it always uptade while giving warnings.

    But right now. It does not detect tiva board on device side.

    thanks
  • Hello Hikmet

    On the debug side, the ICDI MCU converts the UART to be sent over USB. On the device side, the port is a raw USB port and is connected to the USB peripheral. The Serial is still sending the data over PA0 and PA1 to the debug side ICDI MCU. So as you can see there is no physical path.

    What you need to do is to enumerate the device side USB as a CDC class device and then send data instead of sending data over UART

    Regards
    Amit
  • Hi Amit,

    Yes, I don't want to send data over UART, I want to send data over USB. I will going to make a custom desing board according to Tiva Launch pad reference design. And I want it to be used as USB device and when we connect it to pc, I want to be detected as USB device.( on custom design, ICDI part will not be on board)

    Thanks
    Hikmet
  • Hello Hikmet

    I am not very familiar with Energia, but clearly USB enumeration is not as simple as the code you have given. I believe you would need to check on Energia's Forum. Also you would need an application on PC side which understands the packet being sent to the PC.

    Regards
    Amit