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.

CCS fails to debug due to UART Connection

Other Parts Discussed in Thread: CONTROLSUITE, MSP430G2553

I just installed the latest version of CCS and controlsuite, and during the installation there was some option enable connection through the UART. I didn't pay much attention to it at the time, given that I've used the UART with a terminal before. However, now CCS is unable to load and debug on the device, giving the following error message:

Can't Initialize Target CPU:
**Error**: Serial Communication failed at port: COM14, baud rate:9600!

To use serial monitor, please ensure the following prerequisites are satisfied:
1. Make sure the cable is plugged into both the target and the host on the right COM port.
2. Make sure a compatible target side serial monitor is loaded and running on the target device.

The message is not even picking up the COM port correctly. It's configured on COM4, with 115200 baud. If I use the terminal view in CCS, I can connect successfully with the settings I just mentioned. However, doing so does not fix the problem either. Also, unchecking the "ComPort" under my Debug Configuration settings does not fix the problem.

I appreciate any help on this problem.

  • Erik,

    Are you looking to debug over UART?  Typically the debug connection should be set to a JTAG debug interface such as the XDS100.  The XDS100v2 is what is present on most newer C2000 development kits.

    If you open the .ccxml file that is part of your project what does it list as the connection?  I suspect that you have "UART Connection" selected instead of the debug probe.

    Regards,

    John

  • Turns out the connection was properly set, but  I had to delete "COM14" from the alternate communication for it to not be used. Thanks for your help. It works now. 

  • Great.  I will have to remember that trick.

  • HI!

    I am having the same error. I am using MSP430G2553:

    MSP430: Can't Initialize Target CPU: **Error**: Serial Communication failed at port: COM65, baud rate:9600! To use serial monitor, please ensure the following prerequisites are satisfied: 1. Make sure the cable is plugged into both the target and the host on the right COM port. 2. Make sure a compatible target side serial monitor is loaded and running on the target device.

    How can I delete "COM65"? In Device Manager or in CCS?

    Thank you,

    Celsa

  • Celsa,

    You don't need to delete the COM port from device manager.  You just need to clear the setting that was entered in the "Alternative Connection" box in your target configuration file (ccxml).  In the screen capture in my earlier post it is located near the button right.

    Regards,

    John