cancel
Showing results for 
Search instead for 
Did you mean: 

How to duplicate a ST32F4 Cube IDE project on another PC?

PHolt.1
Senior III

This is incredibly convoluted. None of the many options work.

I have v1.6.1 installed on two machines.

The existing project is on one, under c:\projectname\project1.

In it are these files and folders

12/05/2021 18:53      169,656 .cproject

05/10/2020 15:37      84,465 .cproject_org

07/12/2020 19:00       1,744 .project

05/10/2020 15:37       1,898 .project_org

09/04/2021 20:51  <DIR>     .settings

09/04/2021 20:51  <DIR>     CMSIS

12/05/2021 18:53  <DIR>     Debug

09/04/2021 20:52  <DIR>     HAL_Driver

10/05/2021 16:24  <DIR>     inc

14/09/2020 15:55        447 Kxx-SWD.xml

28/10/2019 12:41        440 Kxx.xml

12/05/2021 18:58       6,673 LinkerScript.ld

09/04/2021 20:52  <DIR>     Middlewares

10/05/2021 16:24  <DIR>     src

09/04/2021 20:52  <DIR>     startup

07/05/2021 11:39       8,916 TestCPPProject (1).launch

I have created c:\projectname\project1 on the other PC and copied the above data there.

How can I open the project on this other PC? It should be simple but all the import options complain about something, or the Finish button is greyed-out. The most usual refusal of import is saying that you can't create a project of the same name, or some form of that. I have tried importing from a File System (several options appear) and that won't work either. One should be able to simply open it...

I have googled all over the place, of course, and this is a common issue, but all the advice is old, from say 2017, when it was different software.

Thank you in advance ��

4 REPLIES 4
Pavel A.
Evangelist III

Should just work.

Which import option do you use? What the import options complain about?

PHolt.1
Senior III

I tried the whole lot... spent half a day going through different combinations.

Then I had an idea. Maybe Cube is storing project config somewhere else, not within the project directory (folder). Perhaps in the registry, which would be a bit messy. But it was simple. When I copied over this usefully named directory (btw the original install was 1.4.0, then updated online to 1.6.1 which I am not updating anymore just in case)

C:\ST\STM32CubeIDE_1.4.0\STM32CubeIDE\configuration

from the source machine to the target one, and started up Cube on the target one, it just came up, whole project on-screen :)

I probably still need to install USB drivers for the STLINK V2/V3 debuggers.

PHolt.1
Senior III

IMHO, the basic point is that IF you want to archive a project, all tool config should be archived too, but clearly Cube IDE is storing some of that under c:\st\...\configuration so that needs to be archived as well.

I may have been doing something stupid but with 1.6.1 there is no obvious way to simply open an existing project directory which was copied from another machine. Well, not with a fresh install of Cube.

Piranha
Chief II

That's the way how Eclipse's broken Workspaces are designed. For an actually productive IDEs look at this discussion:

https://community.st.com/s/question/0D53W00000U7PcH/keil-vs-stm-ide