2018-06-25 08:16 AM
I have configured CubeMX to backup files before generating any new code and now not only has it not backed up anything but it deleted all my custom libraries as well! Also all the code under the 'USER CODE' delimiters is also gone. The only change I made was enable the ADC and it just wiped everything off resetting it to its original creation state. Is there any way to get my code back? That is almost a week's work. I use TrueStudio and I've attached the project folder here.
#cubemx-4.262018-06-25 08:54 AM
Unless you've taken specific steps outside of CubeMX to archive your work, then it is likely lost.
You can check the recycle bin, and use a file manager to navigate the associated directories.
Iterative tools that rework files repeatedly are prone to failure, sandbox and plan accordingly.
2018-06-26 01:20 AM
I always do a git commit before I run CubeMX.
2018-07-05 06:06 AM
Hello
hrishikesh
Thanks for your feedback.
Issue will be resolved in next STM32CubeMX release (4.27.0).
Best regards,
Houda