Serial Terminal View in Eclipse Luna

If you have read my article “Serial Terminal View with Eclipse Kepler“, then you are aware that using a Terminal view to a serial connection (COM port) under Eclipse Kepler is pretty much broken. I’m moving some of my projects to the more recent Eclipse Luna release, and the good news is that support is back πŸ™‚

Terminal View with connection to board

Terminal View with connection to board

Installation

Use the menu Help > Install New Software and use

http://download.eclipse.org/releases/luna

as update site. Under β€˜Mobile and Device Development’, select β€˜TCF Terminal (Console) View‘:

TCF Terminal View

TCF Terminal (Console) View

Then go through the installation process, an Eclipse restart is needed at the end as asked.

This installs a new Terminals view under ‘Target Explorer Views‘:

Target Explorer Terminal View

Target Explorer Terminal View

This opens the Terminals view. There is an icon to open a new Terminal connection:

Open a Terminal

Open a Terminal

Select ‘Serial Terminal‘ from the dialog:

Serial Terminal

Serial Terminal

πŸ’‘ If you use ‘Local Terminal’, then it creates another cool thing: a local consola, aka DOS shell on Windows πŸ™‚

You might now face the issue that no COM port is listed (at least for me on Windows):

Launch Terminal

Launch Terminal

The issue is that the RXTX plugins need to be installed too. You need to do another Help > Install New Software from this site:

http://rxtx.qbang.org/eclipse

Install the latest plugin:

RXTX Plugins Installation

RXTX Plugins Installation

Go trough the installation process, restart Eclipse as asked.

With this, I have the COM ports listed:

COM Port Listed

COM Port Listed

❗ I still have sometimes slow refresh/dialog issues to list the COM ports, probably because I have many of them listed?

With this, I have now a console/terminal view in Eclipse Luna which I can use to talk to my boards using a serial/COM interface:

Terminal View with connection to board

Terminal View with connection to board

πŸ’‘ Use the ‘Toggle Command Input Field’ to have a command line input field.

Summary

I’m using mostly an external terminal program like Termite. But it is a very useful thing to have a terminal view in Eclipse so I do not need to switch to another application. All what is needed is the installation of a plugin plus the RXTX (at least on Windows). And best of all: it comes with telnet, SSH and local shell too :-).

Happy Terminaling πŸ™‚

Advertisements

30 thoughts on “Serial Terminal View in Eclipse Luna

  1. Thank you for the guide. For my eclipse 64-bit executable it did not work. With the 32-bit version it works!

    Like

  2. Thanks – great tip.
    It worked for me using Eclipse Luna 32 bit on Win 7 64 bit.
    Also worked on Eclipse Luna 32 bit on CentOS 6.6 32 bit.
    Haven’t tried it on other platforms yet (e.g. CentOS 7, CentOS 64 bit etc.).
    My board has an FTDI FT4232 device which appears as 4 COM ports on Windows or /dev/ttyUSBn on Linux and once I find the right one (usually the highest numbered one) it connects to my target fine.

    Like

  3. Pingback: Using Segger Real Time Terminal (RTT) with Eclipse | MCU on Eclipse

  4. Hi Erich,
    How to output message in external terminal ?
    I’m using semihosting to output messages in Eclipse console and I want to output messages to an external terminal (termite, putty, realterm …whataever).
    But when I connect to the telnet client with putty using the following configuration:
    host:localhost
    port=19201

    I don’t receive anything.
    Any tips or ideas ?
    Thanks

    Like

      • I’m setting the telnet port in the debug connection. I can connect to the JLinkGDBServer in telnet mode with putty but the semihosting console is always printing messages not in putty console.

        The semihosting is not giving the hand to the external console ?

        Like

  5. It is working now. Following commands should be used:
    1 monitor semihosting enable
    2 semihosting IOClient 1 #print output via telnet
    3 telnet client config: localhost and 2333 (port number is 2333 not 19021)

    Like

  6. Hi Erich,
    Why I cannot see the serial monitor? Im using Eclipse Neon.1
    I know it is a little outdated but can you tell me the solution?
    I have installed all the files required including RXTX and others.

    Regards,
    Din

    Like

    • Did not work for me on Neon, but I installed Oxygen and oddly, it works there (following the instructions in the original post).
      The only problem I have now is the selectable serial baud rate only goes up to 115200. I don’t suppose anyone knows a way to bump it higher? I need it up to 230400 (odd, yes, but there’s a particular device with dev board that is fixed at this rate).

      Like

      • I have not tried it with Oxygen, so thanks for that idea to try it out there.
        As for going above 115200: this usually does not work as depending on the UART device you have the needed clock accuracity is not guaranteed. If you really need 230400, you might be better off implementing this on a small micrcontroller board where you have control over it?

        Like

      • I’m not sure it actually works with a “real” UART device. This typically goes over a USB-UART adapter. Normally we use it with any terminal program (such as TeraTerm or whatever) and it works flawlessly. We have probably hundreds of setups and they all work fine.
        I actually did some poking around with the company supplied dev/debug tool and they actually rely on RxTx to handle the terminal in their tool, though likely patched to work at such speeds.

        Like

      • A machine with a ‘real’ UART is hard to find these days. USB-CDC (or UART over USB) can work in most cases, but it depends on the USB CDC implementation (flow control, buffers, etc), so I had mixed experience with it. With all the issues with the serial connection in Eclipse I switched over to use an external terminal program (Termite, putty, etc) which worked much better.

        Like

  7. Hi Erich – thanks a lot for the mirror. Much appreciated.

    BTW – for some reason (again?) I can’t reply to your post but can only post a new (?) comment.

    Like

    • One other thing – the readme says to download the zip, unpack it and then point to it from the Eclipse Install New Software option. However there is not need to unpack the zip as far as I can see and you can simply download the zip and then use this to point at it without unpacking it first:

      Help > Install New Software… > Add… > Archive…

      Hope this helps.

      Like

    • Hi Katrin,
      I did not think that this could work, this is great! And thanks for that link to the rxtx binaris, that’s very useful.
      I quickly tried things on Eclipse Oxygen, and here after installing the terminal plugin (I installed all the TM Terminal views and the TCF Target Explorer) it seems that I don’t need the RXTX libraries, as I can directly communicate with the COM port (at least on Windows).
      πŸ™‚

      Like

  8. Pingback: Using Serial Terminal and COM Support in Eclipse Oxygen and Neon | MCU on Eclipse

What do you think?

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s