2021-05-12 02:19 PM
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 =)
2021-05-12 02:25 PM
Should just work.
Which import option do you use? What the import options complain about?
2021-05-12 02:39 PM
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.
2021-05-12 10:45 PM
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.
2021-05-22 05:49 AM
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