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.

usb_dev_serial example problem in ek-tm4c123G: Not getting anything on terminal

Other Parts Discussed in Thread: EK-TM4C123GXL

I am trying to run usb_dev_serial example code found in the examples folder of EK-TM4c123GXL board.

Using Putty for the serial com at 115200 baudrate.

I tried both device port as well as  icdi port for the serial communication on Putty.

When I am sending data from putty to the device then green LED is blinking, but I am not getting any echo of data on the putty terminal.

Help me to get the issue solved, 

I tried to implement the code shared by one of the active member of forum  but still getting the same problem..

  • Hello Sachin,

    Did you check that simple example prints work for PuTTy. Do check the Device Manager setting for the COM Port. My experience with PuTTy is "extremely less" and prefer to use TeraTerm.

    Regards
    Amit
  • Both Teraterm and Putty are serial console..As far I know, it does not matter which terminal I use, I want to know whether the code(usb_dev_serial) that was found in the examples folder of EK-TM4c123GXL board echo data or not?

    And what is the baud rate that I have to use on the serial terminal,115200 or something else?
  • Hello Sachin,

    Agreed that both are serial console, but then every application has it's nuances. (Analogy is both iPhone6 and S5 are smart phones, but switching to one another takes some understanding). Anyways theory aside, it is important to baseline your system with a know working example like uart_echo. This way we are sure that the system is responsive to a simple application. The Baud settings is 115200 and format is 8N1

    Regards
    Amit
  • Hi Amit,

    I checked the basic uart_echo example program.I could see the data echoing back in this case. But I have not yet been able to find the solution to the issue which I'm facing with usb_dev_serial. When I debugged the code using ICDI, I could see the data coming to the ui32TxCount variable, and even the Green LED blinks on typing something on the HyperTerminal indicating that the data is reaching back the PC terminal..But I couldn't see the ui32RxCount variable changing its value in the watch expression window and I'm not even seeing the Blue LED blinking..I'm very much confused. I think there's some issue with the example code usb_dev_serial..

    Thanks
  • Hi Amit,

    Actually I solved the problem on windows. But I want to do read and write from the linux side(3.10 version kernel) so for that when I am plugging my device on running lsusb terminal shows my device as ACM0 device. Now I tried to echo and cat /dev/ttyACM0 but I am not getting the the data on doing cat at /dev/ttyACM0.

    In need of a quick help...
  • I am using termios on the linux to read and write data.
    Successfull in reading and writing.
    But I have one confusion, I am sending data from the host(linux) to the device port(it is /dev/ttyACM0) of the board and reading the data back from the ICDI port(/dev/ttyACM1).
    Is this the right way of running this example?
  • Hello Sachin,

    Yes, that is the correct procedure

    Regards
    Amit
  • Actually, I am not getting the things right.

    How do we know that the data is transmitting serially. Can I use only Virtual Com port (Device port) for the echo of data.

    What is the use of TCDI port? Is it a real UART port or is it also virtual?

    Also, please tell me the correct way of transferring data(direction of transfer from linux).

  • Hello Sachin,

    The ICDI is also a emulated port over USB as well. Your procedure is right, except for the fact that you are still not sanitzing your setup for basic Debug COM Port (ICDI).

    Regards
    Amit