Skip to main content
mvigneshwaran27
Associate II
August 3, 2020
Question

stm32cubeIDE deleting src folder

  • August 3, 2020
  • 8 replies
  • 2923 views

stm32cubeIDE deleting SRC folder, im posting this after it deleted my 2nd project

i always update stm32cubeIDE , cube mx on day 1 itself,

it is not deleting while i developing , only completed project getting deleted, i only noticing it when i open project folder for later use, only inc, startup folder available ... tried many recovery software to recover no luck,

(note: i duplicate older project to develop new one like template, i started from STM32CubeIDE 1.2.0 now currently using STM32CubeIDE 1.4.1)

please add auto backup core folder feature in later release

This topic has been closed for replies.

8 replies

S.Ma
Principal
August 3, 2020

Zip your project regularly or use git style version control. or like in some automotive project, once a project start, don t upgrade anything which might make you finish it faster with less volatility.

Cartu38 OpenDev
Graduate II
August 3, 2020

Definitively a good and safe way of working !

mvigneshwaran27
Associate II
August 3, 2020

luckily this time i used GIT, but 1st project gone,

i upgrade software when i start new project, still i use system workbench and atollic for older project

i duplicate project if i use same board for new project like template

edit: i regularly update eclipse based software because of bugs

Cartu38 OpenDev
Graduate II
August 3, 2020

Startup folder available …. are linker scripts and .projet & .cproject available too or not ?

If yes maybe have you move your project location at a point ? Depending the way you're getting project alive some if source files are relying on linked resouces. If updating project env. without updating links may sounds like data lost.

Have a look to your resources small overlay icons ...

0693W000003Buc1QAC.jpg

mvigneshwaran27
Associate II
August 3, 2020

everything available except SRC folder,

i completed the project ,removed it from project explorer, i only noticing when l lookup the folder later to copy some code from it after some week

Final commit (before removing from project explorer) in git repository has SRC folder

problem i think is

i use same code base for different project because of same hardware board (copy it to different location and again import it and rename // or copy it inside project explorer and rename), so there is some trace of previous project location

Cartu38 OpenDev
Graduate II
August 3, 2020

Sounds definitively weird and not so easy to help you here as I guess we need much more details of your way of working.

Doing which action are your src data lost (only closed project opening or project import back or project update from .ioc editor or … ) ?

Are your projects rely on linked resources ?

Tesla DeLorean
Guru
August 3, 2020

These seem like recurrent issues.

In prior instances it has looks like new software finds issues of format/syntax in the .IOC from legacy versions, and fails hard.

It is one thing to fix bugs, it is another to gracefully handle the situations where a prior bug is encountered, or acceptable syntax has changed over time.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Houda GHABRI
ST Employee
August 19, 2020

Hi @mvigneshwaran27​ ,

Thanks for rising this issue.

Can you tell me please the first STM32CubeIDE version that you found the problem with it at the beginning? is it 1.4.0?

best regards,

Houda

mvigneshwaran27
Associate II
August 20, 2020

STM32CubeIDE 1.3

Ahmad M.Nejad
Associate II
September 9, 2020

My tow week work lost :sad_but_relieved_face:

The Src folder removed.

STM32CubeIDE  Version: 1.4.2

Ahmad M.Nejad
Associate II
September 9, 2020

This problem may be happen when you copy/paste a project folder!

When you work with pasted project, the Src folder of copied project is removed.

STM32CubeIDE Version: 1.4.2

GregKN
Associate II
April 7, 2021

Hello,

i found this thread, because STM32CubeIDE deleted nearly all my src-folders during i try to export my projects into a zip file for backup. Didn't believe it until i found several threads including this one reporting this bug.

Be aware! You only have to open the project and try to export it and you will loose all your .c-files in the src folder. You don't have to recompile or edit the project!

Really a nightmare! :pouting_face:

Thanks ST!