Skip to main content
dale
Associate III
September 27, 2019
Solved

Does STM32CubeIDE offer a serial terminal? This functionality was available in the Atollic TrueSTUDIO product.

  • September 27, 2019
  • 6 replies
  • 22076 views

I'm really loving the high level of integration offered in the STM32CubeIDE application.

Does STM32CubeIDE offer a serial terminal? This functionality was available in the Atollic TrueSTUDIO product.

Maybe it's already in there (somewhere?) and I just can't find it...?

I'm using this software to teach a class on the STM32 devices. Having one less external program to install and verify in the lab (i.e., Tera Term) and associated drivers (i.e., CH340G) would makes things a LOT simpler.

Thanks for any insight you can share on this topic.

Dale Wheat

This topic has been closed for replies.
Best answer by Markus GIRDLAND

Hello Dale,

It's not implemented but you shouldn't need external programs either as you can download and install something like this that's found inside the Eclipse marketplace:

https://marketplace.eclipse.org/content/tm-terminal

And my colleague who gave me a tip about this also linked to this great tutorial:

https://mcuoneclipse.com/2017/10/07/using-serial-terminal-and-com-support-in-eclipse-oxygen-and-neon/

6 replies

Markus GIRDLAND
ST Employee
September 27, 2019

Hello Dale,

It's not implemented but you shouldn't need external programs either as you can download and install something like this that's found inside the Eclipse marketplace:

https://marketplace.eclipse.org/content/tm-terminal

And my colleague who gave me a tip about this also linked to this great tutorial:

https://mcuoneclipse.com/2017/10/07/using-serial-terminal-and-com-support-in-eclipse-oxygen-and-neon/

EKokk
Associate
May 30, 2020

I tried this and it just broke my STM32CubeIDE.

I think the culprit may be this->"Unresolved requirement: Require-Bundle: org.eclipse.team.core; bundle-version="[3.6.0,4.0.0)"

I am really not interested to spend hours and hours to debug this, just to get the terminal working like it should. I have code to write. I attached the log, if any kind person or mayde ST (not getting my hopes up) could fix this in the future. Posted just to let others know, so they don't have to waste their time trying this and ending eihgter re-installing or spending hours finding the solution.

LKreh.1
Visitor II
June 2, 2020

Hello,

I found this topic because I also wanted to have terminal window inside the IDE.

For me it works as it should. Here is my way of installing this feature:

  1. Go to menu Help -> Install New Software
  2. Select Work with -> All available sites
  3. In the search box type "terminal"
  4. When search is finished select "TM Terminal" and "TM Terminal Serial Extensions" and install them.
  5. 0693W000001ppjcQAA.png
  6. Restart CubeIDE
  7. From menu Window -> Show View -> Other select "Terminal"
  8. 0693W000001ppjhQAA.png
  9. Terminal window should appear in IDE.
  10. Click Open Terminal icon (or Shift+Alt+Ctrl+T) and set up your connection parameters.
  11. This is the result in my case:
  12. 0693W000001ppjwQAA.png

dale
daleAuthor
Associate III
September 30, 2019

Markus,

Thank you for the prompt and detailed answer to my question.

I hope to integrate the information you have provided into a subsequent "Advanced Peripherals" class for the STM32.

Dale

BTrem
Associate II
December 1, 2020

Hi,

I installed Tm Terminal throw the help menu/Eclipse Marketplace. I didn't have any error on the installation but when I choose Serial Terminal, no port appear the the settings. I've tied with Tera Term and it had no problem detecting the nucleo board.

Any clue?

Bruno

LKreh.1
Visitor II
December 2, 2020

Hi Bruno,

Did you install also "TM Terminal Serial Extensions"?

Leszek

DrAK
Associate
September 2, 2021

I have exactly the same problem as Bruno.

YES I did install the both items !

RKyzn.1
Associate
February 16, 2021

https://www.eclipse.org/setups/marketplace/?id=1687099

https://download.eclipse.org/tools/cdt/releases/9.11 

help>install new software

When installing, it prompts you to immediately update, do not do this.IDE Version 1.2 1.3 1.4

version 1.51 no check,

on 1.5.1 crash is possible, check in the sandbox.

0693W000008GIyXQAW.png0693W000008GIySQAW.png

UliAuer
Associate
February 19, 2021

Hello everybody !

Being very new to the whole STM32 (and CubeIDE) universe I'm learning and discovering a huge amount of things every day.

I'm watching a German YT-tutorial series on C programming and STM32 which lead me to CubeIDE.

And I'm also having the problem with (not) viewing my test programs in a terminal....I've already installed the TM terminal extensions but I don't know how to configure the terminal to see the debugged programm (like simple "Hello World" printing)....which steps do I have to make in order to see that ?

I mean it's not a serial terminal but a local terminal, right ? But choosing Local Terminal (either UTF-8 oder Default ISO) gives me a prompt but still no entry once I run the program....;-(

Any suggestions ?

Guillaume K
ST Employee
September 6, 2021

In recent version of STM32CubeIDE (1.7.0) without installing additional software:

click on Console view. Locate the icon to open a new console (square with a small "+"). click on the down triangle to open New console menu. In the new console menu, select "command shell console".

In "command shell console" , in Connection type select "Serial port". Click on New. Give it a name. Select the serial COM port (the STM32 board must be connected with USB so that the COM port appears). Configure the serial port parameters (they depend from what you configure for serial port in your application).

If you have multiple consoles, to switch between consoles there is an icon (square) near the New console icon.

Note that to have serial output you must configure it in your STM32 application. In particular, on STM32CubeIDE you have to initialise the UART and provide Newlib C library adaptation functions _write() and _read() functions in syscalls.c

fronders
Associate III
October 22, 2021

@Guillaume K​ thanks for your method, works really well (in my previous attempts with Atollic, built-in terminal would be superslow). Do you know, if there is a way to separate this comand shell console into a separate window, so it can be observed in parallel to build console?

Guillaume K
ST Employee
October 22, 2021

try to click on the console tab, keep it pressed, and drag it where you want to place the window.