Skip to main content
Till Rachow
Associate III
Aug 10, 2018 7:22 AM UTC
Solved

STM32CubeMX deletes Src folder..

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

This topic has been closed for replies.
Mohamed Mansouri
Mohamed MansouriBest answer
Visitor II
Sep 5, 2018 7:38 AM UTC

Hi,

Thanks for your feedback,

I confirm its a bug, and it will be fixed in next CubeMX version 4.27.0,

Please feel free to contact me for further information,

Best regards,

Mohamed

24 replies

Ian Day
Associate II
Feb 19, 2021 10:03 AM UTC

Still getting this at version 6.1.1...

Is there a version that is known to work?

abbb.12
Associate
Apr 1, 2021 2:18 AM UTC

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
Apr 1, 2021 2:27 AM UTC

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
Apr 7, 2021 2:07 PM UTC

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?