cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeMX deletes Src folder..

Till Rachow
Associate III

Hi,

When I am generating Code with CubeMX, it will delete my complete Src folder. I always have to recover it. For that reason it will also not generate any new c files once i add a new peripheral.

Tried this on Mac and Windows with latest CubeMx version (4.26.1) and i get the same behaviour in both.

Can anybody help?

Thanks

24 REPLIES 24
IHawk
Associate II

Correction to my previous post, renaming the project did not delete the sources, it just mangled the project. .. all sources appear to be there. Phew. Must remember to always back up everything before using mx.

Ian Day
Associate III

Still getting this at version 6.1.1...

Is there a version that is known to work?

abbb.12
Associate II

I had the same experience,and find why this happen。

�?CubeIDE】Why delete my Src folder ?Why haven't you fix it for so long?

abbb.12
Associate II

This is not an april fool's day joke。@ 4.1 2021

This problem still exists now.

I had the same experience,and find why this happen

�?CubeIDE】Why delete my Src folder ?Why haven't you fix it for so long?

GregKN
Associate II

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!

P.S. Can a mod please delete the "Answered" tag, because this bug is still alive in 2021?