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.

TM4C1294NCPDT: Command Line Communication via UART

Part Number: TM4C1294NCPDT
Other Parts Discussed in Thread: EK-TM4C1294XL, EK-TM4C129EXL

Hi all,

I am working to make flexible test bench environment to test modules of my code. I am using a EK-TM4C1294XL evaluation kit for development. I have leveraged the serial communication of the ICDI UART0 connection to use the UARTPrintf function. I see the results of the printf in the terminal window of CCS. My objective is to write code that can run in a loop with commands that I can send to the evaluation board using the same UART0 port. This way I can avoid writing a long test bench with multiple corner cases and instead test and verify each individual function with practical commands from the serial bus. Using now UARTgetc or UARTgets I am able to get data from the serial terminal.

To go to the next level of this I am trying to use the usb_dev_cbcserial and the usb_dev_cserial examples provided in the C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c129exl as explained in other posts. But I am not able to see or open another Port connection to the board. In my case when performing some of the previous UARTPrintf example I was using COM3. Now when I flash any of the example codes and open the terminal connection on CCS I dont see a second COM port and I dont see anything printed on the original COM3 port. I try typing h on the terminal (even if I cant see it local echo back to me) and no result.

I would like to better understand how to utilize the features provided in this example.

Best regards,

Stephen G

  • To go to the next level of this I am trying to use the usb_dev_cbcserial and the usb_dev_cserial examples provided in the C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c129exl as explained in other posts. But I am not able to see or open another Port connection to the board.

    Hi,

      To run these two examples, you need to connect another USB cable to the LaunchPad. There are two USB ports on the LaunchPad. What you are currently connecting is the Debug USB port. This port not only support JTAG emulation but also enumerate as a serial COM port using UART0. But to run usb_dev_cbcserial and the usb_dev_cserial, you will need to use the Device port. After running the example, the Device port will also enumerate as a virtual COM port. You will see it in Windows Device Manager. 

  • Hi Charles, this resolved my issue. I do see the 2 additional COM ports. The echo is seen on one of them and the other allows me to perform commands they list in the example.