Skip to main content
Till Rachow
Associate III
August 10, 2018
Solved

STM32CubeMX deletes Src folder..

  • August 10, 2018
  • 24 replies
  • 5884 views

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.
Best answer by Mohamed Mansouri

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
February 19, 2021

Still getting this at version 6.1.1...

Is there a version that is known to work?

abbb.12
Associate
April 1, 2021

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
April 1, 2021

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
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!

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