cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeIDE - remove saved connections from Command Shell Console

JWils.4
Associate

When I go to Debug => Open Console => Command Shell Console => Select Remote Connection, I have accumulated too many old connections. Any idea how to remove them? I am sure there must be a very simple method but it seems to have defeated me.

0693W00000FAQ8LQAX.png

1 ACCEPTED SOLUTION

Accepted Solutions
Peter BENSCH
ST Employee

You will find:

  1. the most recent setting in: <workspace_xyz>\.metadata\.plugins\org.eclipse.remote.console\dialog_settings.xml
  2. all of the last of these settings in: <workspace_xyz>\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.remote.core.prefs

Just close Eclipse and delete in (2) the obsolete blocks (5 lines per block for Serial Port) using your favourite text editor.

Note: If you also change the name of one or more entries in (2), please do not forget that the name and port number of an entry here match the one from dialog_settings.xml (1).

<edit>Please note that dialog_settings.xml can contain special characters in the name, e.g. a comma.

However, org.eclipse.remote.core.prefs is not an XML file, so entries are stored in UML encoded format, which is why the comma is replaced by %2C.</edit>

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
Peter BENSCH
ST Employee

You will find:

  1. the most recent setting in: <workspace_xyz>\.metadata\.plugins\org.eclipse.remote.console\dialog_settings.xml
  2. all of the last of these settings in: <workspace_xyz>\.metadata\.plugins\org.eclipse.core.runtime\.settings\org.eclipse.remote.core.prefs

Just close Eclipse and delete in (2) the obsolete blocks (5 lines per block for Serial Port) using your favourite text editor.

Note: If you also change the name of one or more entries in (2), please do not forget that the name and port number of an entry here match the one from dialog_settings.xml (1).

<edit>Please note that dialog_settings.xml can contain special characters in the name, e.g. a comma.

However, org.eclipse.remote.core.prefs is not an XML file, so entries are stored in UML encoded format, which is why the comma is replaced by %2C.</edit>

Good luck!

If the problem is resolved, please mark this topic as answered by selecting Select as best. This will help other users find that answer faster.

/Peter

In order to give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Stefano Munaretto
Associate

For all having the same issue and don't want to look in the .xml files ...

At least in version 1.12.0 running on macOS (12.6) there is a possibility to remove those connections within STM32CubeIDE.

Therefore open: Menu > Window > Show View > Other

In the new Window "Show View" open: Connections > Connections

In the opened tab "Connections" by right-clicking on the desired connection you can:

* Open Command Shell

* Delete Connection

* (Edit) Properties

Have a look at the Screenshots, too. (Might look different on windows)

0693W00000bhPUoQAM.png