Skip to main content
PDools
Associate
February 4, 2022
Solved

Migration from TrueStudio to STM32CubeIDE, "Fail create backup of project files before conversion." No other message. How to debug this?

Hello,

We have a long-lived project that we develop in Atollic TrueStudio. It contains 4 nested projects; two C/C++ projects, and another two Eclipse projects for web development.

I have tried to import these projects using the "Import/General/Import Atollic TrueSTUDIO Project" feature, and have been mostly successful. (STM32CubeIDE version 1.8.0 from November 2021.)

Unfortunately I can't convert the second of the two C/C++ projects, and I can't figure out why.

The only message that I get is "Fail create backup of project files before conversion."

There is no log that I can find that provides more detail.

I've repeatedly tried with a variety of combination of the projects selected during the import attempt, and always with the same result.

I've noticed that the .project file is copied to .project_org, but the .cproject file is left untouched, suggesting that the .cproject file cannot be copied. The permissions on both files are -rw-rw-r-- for both files.

Is there a way to start STM32CubeIDE so that it provides more detailed information about the cause of this problem?

Thanks.

This topic has been closed for replies.
Julien D
Julien DBest answer
ST Employee
February 4, 2022

Thanks for those files, without this no chance to understand where the issue was !

Your project is actually defining resources filters:

0693W00000JOalHQAT.pngMeans that .cproject file is present on disk but hidden from the IDE scope, so no chance for the converter to proceed.

To get the converter working I had to edit the .project file, remove all <filteredResources>[...]</filteredResources> stuff, and import the project again.

Hope this will resolve your issue too.

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.

10 replies

Julien D
ST Employee
February 4, 2022

In your workspace log file (<workspace_path>/.metadata/.log) you should have the related Java Stack Trace of the exception for "Fail create backup of project files before conversion.".

Could you paste it there ?

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.
PDools
PDoolsAuthor
Associate
February 4, 2022

Hi Julien,

Thanks for following up.

I will attach the file. Lightly edited.

Julien D
ST Employee
February 4, 2022

The converter actually fails because one of the 2 required files, .project and .cproject, is missing.

In your case here, error is about .cproject.

Edit: those files are project description files, internal stuff to get projects working, and storing all C/C++ settings. That is not your issue here but they must not be edited manually.

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.
PDools
PDoolsAuthor
Associate
February 4, 2022

Hi Julien,

The file is not missing, I promise you. It is right there next to the .project file.

PDools
PDoolsAuthor
Associate
February 4, 2022

... and the file .ide.log, renamed to cube_ide.log