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.

The Terminal in CCS 6.2.0.00048 under CentOS 7.1 64-bit isn't able to connect to serial ports

With CCS 6.2.0.00048 under CentOS 7.1 64-bit are unable to get the Terminal to connect to a serial port on a EVMK2H. Eg. the Launch Terminal screen was set to the following:

However, after pressing OK get the error "No such port: '/dev/ttyUSB0'"

It doesn't appear to be a driver / permissions problem since when running as a user the screen program is able to connect to the /dev/ttyUSB0 and /dev/ttyUSB1 serial ports on the EVMK2H which the CCS 6.2.0 Terminal isn't able to connect to.

If CCS 6.2.0 is started from a command line, then the following log output appears when the Launch Terminal window is opened:

try /dev/serial/by-id
  found /dev/serial/by-id/usb-Spectrum_Digital_XDS2xx_USB_Emulator_-_Composit_S200-000E99039000-if02
    resolved to /dev/ttyACM1
  found /dev/serial/by-id/usb-Spectrum_Digital_XDS2xx_USB_Emulator_-_Composit_S200-000E99039000-if00
    resolved to /dev/ttyACM0
  found /dev/serial/by-id/usb-FTDI_Dual_RS232-HS-if01-port0
    resolved to /dev/ttyUSB1
  found /dev/serial/by-id/usb-FTDI_Dual_RS232-HS-if00-port0
    resolved to /dev/ttyUSB0

This shows the CCS is correctly identifying /dev/ttyUSB0 and /dev/ttyUSB1 ports which are on the "ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC" chip which provides the serial to USB function on the EVMK2H. Therefore, not sure why the Terminal window then reports the "No such port: '/dev/ttyUSB0'" error.

  • Chester Gillon said:
    With CCS 6.2.0.00048 under CentOS 7.1 64-bit are unable to get the Terminal to connect to a serial port on a EVMK2H

    If try CCS 6.2.0.00048 under ubuntu 16.04 LTS then the CCS Terminal is able to connect to the serial ports on the EVMK2H.

    i.e. the problem appears to be specific to running CCS 6.2.0 under CentOS.

  • Chester,

    Thank you for reporting this. As you know, CentOS is not one of the officially tested Linux distributions so I cannot comment specifically as to why it does not work in CentOS while it does on Ubuntu. If we do find any additional information on this topic we will be sure to update this post.

  • Chester Gillon said:
    try /dev/serial/by-id
      found /dev/serial/by-id/usb-Spectrum_Digital_XDS2xx_USB_Emulator_-_Composit_S200-000E99039000-if02
        resolved to /dev/ttyACM1
      found /dev/serial/by-id/usb-Spectrum_Digital_XDS2xx_USB_Emulator_-_Composit_S200-000E99039000-if00
        resolved to /dev/ttyACM0
      found /dev/serial/by-id/usb-FTDI_Dual_RS232-HS-if01-port0
        resolved to /dev/ttyUSB1
      found /dev/serial/by-id/usb-FTDI_Dual_RS232-HS-if00-port0
        resolved to /dev/ttyUSB0

    I ran into the same problem on openSUSE 42.2. This is a permissions error, where the RXTX library cannot create lock files. It's not obvious from the log output, but you can fix that by doing the following:

    usermod -aG lock <your username>
    usermod -aG uucp <your username>

    Logout, then log back in, and the terminal will start working. This can happen on any RedHat-like distro. Found via the RXTX troubleshooting docs: 

    Hope this helps!